fix audio on reconnect

This commit is contained in:
Jakob Ketterl 2019-05-09 16:11:14 +02:00
parent 425517d576
commit 56dcd00e82

View File

@ -1694,6 +1694,7 @@ function on_ws_closed()
audio_node.disconnect();
}
catch (dont_care) {}
audio_initialized = 0;
divlog("WebSocket has closed unexpectedly. Attempting to reconnect in 5 seconds...", 1);
setTimeout(open_websocket, 5000);