Permalink
Browse files

Fix delay() not really delaying

  • Loading branch information...
1 parent c75b044 commit f52bcddde51c46af723c0bb0e8eae8dc2d636ba6 @emostar emostar committed Sep 1, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/queue/job.js
View
@@ -335,8 +335,7 @@ Job.prototype.progress = function(complete, total){
Job.prototype.delay = function(ms){
if (0 == arguments.length) return this._delay;
this._delay = ms;
- this._state = 'delayed';
- return this;
+ return this.state('delayed');
};
/**

0 comments on commit f52bcdd

Please sign in to comment.