Permalink
Browse files

wrap sendMessage in proccess.NextTick

  • Loading branch information...
1 parent 5e4c256 commit bfede4ee3e27fae6d1b50ee1100740eda2e2f440 @robertkowalski committed Aug 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 gelf.js
View
@@ -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) {

0 comments on commit bfede4e

Please sign in to comment.