aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Guryanov <caiiiycuk@gmail.com>2013-01-30 22:05:11 +0700
committerAleksander Guryanov <caiiiycuk@gmail.com>2013-01-30 22:05:11 +0700
commit001806e94750f1f413d7d58aa63cf98f2482c008 (patch)
tree873c3b55d77688511185a55812f8f6f9937dbf50 /src
parent3f261d13687a0a93adb262f4395b4b57e3d61335 (diff)
Fix '-1' problem in recv
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index cb892251..4cce7184 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7023,7 +7023,7 @@ LibraryManager.library = {
if (!info) return -1;
if (info.inQueue.length == 0) {
___setErrNo(ERRNO_CODES.EAGAIN); // no data, and all sockets are nonblocking, so this is the right behavior
- return 0; // should this be -1 like the spec says?
+ return -1;
}
var buffer = info.inQueue.shift();
#if SOCKET_DEBUG