aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-05 12:36:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-05 12:36:01 -0700
commit9b32e9511dd7bda1d703b9fb807e28672e307283 (patch)
tree6e15a97a1beb4ecebf11c0d33239d44a6a8748cb /src
parentf50310bed884bd4012729ca3931056e849d61fe7 (diff)
parent152ee838c80acecc90ba4faaef5b84929e624a23 (diff)
Merge pull request #1260 from modeswitch/fix-missing-constant-definition
INCOMING_QUEUE_LENGTH was not found by CircularBuffer constructor.
Diffstat (limited to 'src')
-rw-r--r--src/library.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 794a12f9..5779327f 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7330,6 +7330,7 @@ LibraryManager.library = {
*/
socket__deps: ['$Sockets'],
socket: function(family, type, protocol) {
+ var INCOMING_QUEUE_LENGTH = 64;
var fd = FS.createFileHandle({
addr: null,
port: null,
@@ -7423,8 +7424,6 @@ LibraryManager.library = {
Sockets.peer = peer;
}
- var INCOMING_QUEUE_LENGTH = 64;
-
function CircularBuffer(max_length) {
var buffer = new Array(++ max_length);
var head = 0;