JSON blocking fix + output reselect fix for early stream times

This commit is contained in:
Thulinma 2018-08-30 13:52:27 +02:00
parent 33488da329
commit 4f7b902453
3 changed files with 16 additions and 8 deletions

View file

@ -260,6 +260,7 @@ namespace Mist {
//Handle upgrade to websocket if the output supports it
if (doesWebsockets() && H.GetHeader("Upgrade") == "websocket"){
INFO_MSG("Switching to Websocket mode");
setBlocking(false);
preWebsocketConnect();
webSock = new HTTP::Websocket(myConn, H);
if (!(*webSock)){