Stop sending empty frames.

Pull from websockify a339a4856.
This commit is contained in:
Joel Martin 2011-05-09 17:22:02 -05:00
parent 1ac21e2941
commit f31eeaa8ab
1 changed files with 1 additions and 1 deletions

View File

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