فهرست منبع

Stop sending empty frames.

Pull from websockify a339a4856.
Joel Martin 14 سال پیش
والد
کامیت
f31eeaa8ab
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/websock.js

+ 1 - 1
include/websock.js

@@ -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 = [];
         }