Permalink
Browse files

Replace recursive process.nextTick usage with setImmediate as per htt…

  • Loading branch information...
1 parent e578d3b commit 18bbf26a79ed43b5263dbd442ce089765058e8a0 @JulesAU JulesAU committed Aug 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gearman.js
View
@@ -394,7 +394,7 @@ Gearman.prototype.receive = function(chunk){
// rerun receive just in case there's enough data for another command
if(this.remainder && this.remainder.length>=12){
- process.nextTick(this.receive.bind(this));
+ setImmediate(this.receive.bind(this));
}
};

0 comments on commit 18bbf26

Please sign in to comment.