Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #62 from AlexeyKupershtokh/master

Fixed PubSocket.prototype.flushBatch in order to avoid writing to not writable sockets.
  • Loading branch information...
commit 7359f52420bff292cf4f5b4b1c55b540f6217e58 2 parents 989b8c0 + 85fe033
@tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sockets/pub.js
View
2  lib/sockets/pub.js
@@ -54,7 +54,7 @@ PubSocket.prototype.flushBatch = function(){
for (var i = 0; i < len; ++i) {
sock = socks[i];
- sock.write(msg);
+ if (sock.writable) sock.write(msg);
}
this.batch.clear();
Please sign in to comment.
Something went wrong with that request. Please try again.