call _stopJobPolling on destroy

This commit is contained in:
2016-12-16 16:50:48 -07:00
parent 4befaee4cc
commit c64c5c80d6

View File

@@ -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() {