diff options
author | Michael Riss <Michael.Riss@gmx.de> | 2013-03-22 16:58:23 +0100 |
---|---|---|
committer | Michael Riss <Michael.Riss@gmx.de> | 2013-03-22 17:00:00 +0100 |
commit | 1fecc4b3072c6a0cfef5c629f50cbaa647ea98b1 (patch) | |
tree | b2f2344f46c7b19f45599cd48a2cec2b964b5dbe /src/library.js | |
parent | 4790550b897061a8d67368eeb497e671107174a5 (diff) |
- added test cases for select error reporting
- added missing error reporting for sockets in the write file descriptor set
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 000b625c..66b0ef26 100644 --- a/src/library.js +++ b/src/library.js @@ -7306,6 +7306,10 @@ LibraryManager.library = { // make sure socket exists. // we do create it when the socket is connected, // but other implementations may create it lazily + if ((info.socket.readyState == WebSocket.CLOSING || info.socket.readyState == WebSocket.CLOSED)) { + errorCondition = -1; + return false; + } return info.socket && (info.socket.readyState == info.socket.OPEN); } |