diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-04 14:38:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-04 14:38:06 -0800 |
commit | 05be831d56dc8fac85fe5a3af57eee0b9e409040 (patch) | |
tree | bf7852b0ba9df1816092d3b76066864e0e50b865 | |
parent | de825765989c3256d47676291ebcdf11f1ce6a8b (diff) |
rename socket queue
-rw-r--r-- | src/library.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library.js b/src/library.js index 9379575b..d20667bb 100644 --- a/src/library.js +++ b/src/library.js @@ -6860,7 +6860,7 @@ LibraryManager.library = { #endif info.socket.send(new Uint8Array(data).buffer); } - var queue = []; + var outQueue = []; var intervalling = false, interval; function trySend() { if (info.socket.readyState != info.socket.OPEN) { @@ -6871,17 +6871,17 @@ LibraryManager.library = { } return; } - for (var i = 0; i < queue.length; i++) { - send(queue[i]); + for (var i = 0; i < outQueue.length; i++) { + send(outQueue[i]); } - queue.length = 0; + outQueue.length = 0; if (intervalling) { intervalling = false; clearInterval(interval); } } info.sender = function(data) { - queue.push(data); + outQueue.push(data); trySend(); }; return 0; |