Do not read from second streamer
This commit is contained in:
parent
02f64a39d9
commit
850baf67cd
1
main.c
1
main.c
@ -61,6 +61,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) {
|
|||||||
if(!c->is_websocket) {
|
if(!c->is_websocket) {
|
||||||
if(streamerConnected && streamerConnected != c) {
|
if(streamerConnected && streamerConnected != c) {
|
||||||
c->is_closing = 1;
|
c->is_closing = 1;
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
streamerConnected = c;
|
streamerConnected = c;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user