Skip to content

Commit

Permalink
wrap sendMessage in proccess.NextTick
Browse files Browse the repository at this point in the history
  • Loading branch information
robertkowalski committed Aug 16, 2012
1 parent 5e4c256 commit bfede4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gelf.js
Expand Up @@ -114,7 +114,9 @@ Gelf.prototype.processMessage = function(buffer) {
return;
}
}
self.sendMessage(buffer);
process.nextTick(function() {
self.sendMessage(buffer);
});
};

Gelf.prototype.processMultipleChunks = function(buffer, chunkSize) {
Expand Down

0 comments on commit bfede4e

Please sign in to comment.