Merge branch 'development' into LTS_development
This commit is contained in:
commit
f05346e270
1 changed files with 6 additions and 1 deletions
|
@ -860,6 +860,7 @@ namespace Mist {
|
|||
if (H.GetHeader("Upgrade") != "websocket"){return false;}
|
||||
HTTP::Websocket ws(myConn, H);
|
||||
if (!ws){return false;}
|
||||
setBlocking(false);
|
||||
//start the stream, if needed
|
||||
Util::startInput(streamName, "", true, false);
|
||||
|
||||
|
@ -888,7 +889,11 @@ namespace Mist {
|
|||
if (newState == STRMSTAT_READY){
|
||||
stats();
|
||||
}
|
||||
Util::sleep(250);
|
||||
if (myConn.spool() && ws.readFrame()){
|
||||
onWebsocketFrame();
|
||||
}else{
|
||||
Util::sleep(250);
|
||||
}
|
||||
if (newState == STRMSTAT_READY && (++metaCounter % 4) == 0){
|
||||
updateMeta();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue