Remove id check from Job#stop.

This commit is contained in:
John-David Dalton
2014-05-06 05:21:11 -07:00
parent f4a22f8aef
commit 8cfebee922

View File

@@ -611,7 +611,7 @@ Job.prototype.stop = function(callback) {
this.statusId = clearTimeout(this.statusId);
}
var onStop = _.bind(onJobStop, this);
if (this.id == null || !this.running) {
if (!this.running) {
_.defer(onStop);
return this;
}