mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57: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);
|
||||
}
|
||||
var onStop = _.bind(onJobStop, this);
|
||||
if (this.id == null || !this.running) {
|
||||
if (!this.running) {
|
||||
_.defer(onStop);
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user