aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlan Kligman <ack@mozilla.com>2013-08-14 00:58:28 -0400
committerAlan Kligman <ack@mozilla.com>2013-08-14 00:58:28 -0400
commit2d51d99e4f77aed13d05e40b24976b62f8e926d0 (patch)
treefd1f92584ff2420134a3499490c9606cc77d809c /src/library.js
parentddc6000c88caafd7ae53f37728e5b315ddd8f877 (diff)
Minor fixes for webrtc test.
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/library.js b/src/library.js
index d4218bb2..872c33a7 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7237,7 +7237,7 @@ LibraryManager.library = {
socket__deps: ['$FS', '$Sockets'],
socket: function(family, type, protocol) {
var INCOMING_QUEUE_LENGTH = 64;
- var stream = FS.createStream({
+ var info = FS.createStream({
addr: null,
port: null,
inQueue: new CircularBuffer(INCOMING_QUEUE_LENGTH),
@@ -7246,7 +7246,7 @@ LibraryManager.library = {
socket: true,
stream_ops: {}
});
- assert(stream.fd < 64); // select() assumes socket fd values are in 0..63
+ assert(info.fd < 64); // select() assumes socket fd values are in 0..63
var stream = type == {{{ cDefine('SOCK_STREAM') }}};
if (protocol) {
assert(stream == (protocol == {{{ cDefine('IPPROTO_TCP') }}})); // if stream, must be tcp
@@ -7359,8 +7359,7 @@ LibraryManager.library = {
}
};
};
-
- return stream.fd;
+ return info.fd;
},
mkport__deps: ['$Sockets'],