call _stopJobPolling on destroy
This commit is contained in:
@@ -42,7 +42,7 @@ export default class Job extends events.EventEmitter {
|
|||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
this._running = false;
|
this._running = false;
|
||||||
clearInterval(this._checker);
|
this._stopJobPolling();
|
||||||
}
|
}
|
||||||
|
|
||||||
toJSON() {
|
toJSON() {
|
||||||
|
|||||||
Reference in New Issue
Block a user