Commit f31eeaa8 authored by Joel Martin's avatar Joel Martin

Stop sending empty frames.

Pull from websockify a339a4856.
parent 1ac21e29
......@@ -175,7 +175,7 @@ function flush() {
if (websocket.bufferedAmount < api.maxBufferedAmount) {
//Util.Debug("arr: " + arr);
//Util.Debug("sQ: " + sQ);
if (sQ) {
if (sQ.length > 0) {
websocket.send(encode_message(sQ));
sQ = [];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment