mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Remove id check from Job#stop.
This commit is contained in:
@@ -611,7 +611,7 @@ Job.prototype.stop = function(callback) {
|
|||||||
this.statusId = clearTimeout(this.statusId);
|
this.statusId = clearTimeout(this.statusId);
|
||||||
}
|
}
|
||||||
var onStop = _.bind(onJobStop, this);
|
var onStop = _.bind(onJobStop, this);
|
||||||
if (this.id == null || !this.running) {
|
if (!this.running) {
|
||||||
_.defer(onStop);
|
_.defer(onStop);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user