Permalink
Browse files

Fixed exception when timout occurs, and the error handler tries to cl…

…ose the socket.
  • Loading branch information...
1 parent 631c27b commit 0791651f3b289a9f95be7e3f52186d976245e100 @Trakkasure committed May 19, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/index.js
View
@@ -251,6 +251,7 @@ var funcs={
}
},
write:function(a) { // This shouldn't be called directly. Please use channels.
+ if (!this._connected) return;
if (typeof(a)==='string') a=[a];
else if (!Array.isArray(a)) return;
var self=this;

0 comments on commit 0791651

Please sign in to comment.