Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added noop polling

  • Loading branch information...
commit 314ebeadc871ce75285d5e31ee81f158ae921768 1 parent 8ecce8d
andris9 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gearman.js
View
4 lib/gearman.js
@@ -29,9 +29,9 @@ Gearman.prototype.init = function(){
this.workers = {};
- this.noopTimer = setInterval(function(){
+ this.noopTimer = setInterval((function(){
this.sendCommand("NOOP");
- }, 15000);
+ }).bind(this), 15000);
}
Gearman.packetTypes = {
Please sign in to comment.
Something went wrong with that request. Please try again.