Skip to content

Commit

Permalink
fixed websocket flush/drain loop
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyfwu committed Mar 17, 2013
1 parent d6ba4f8 commit f3710ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transports/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ WS.prototype.write = function(packets){
}, 50);
} else {
// fake drain
ondrain();
setTimeout(ondrain, 0);
}
};

Expand Down

0 comments on commit f3710ff

Please sign in to comment.