parent
62a9158074
commit
9479b7dc74
@ -819,7 +819,7 @@ export class Xapi extends EventEmitter {
|
|||||||
const taskWatchers = this._taskWatchers
|
const taskWatchers = this._taskWatchers
|
||||||
const taskWatcher = taskWatchers[ref]
|
const taskWatcher = taskWatchers[ref]
|
||||||
if (taskWatcher !== undefined) {
|
if (taskWatcher !== undefined) {
|
||||||
taskWatcher.reject(new Error('task has been detroyed before completion'))
|
taskWatcher.reject(new Error('task has been destroyed before completion'))
|
||||||
delete taskWatchers[ref]
|
delete taskWatchers[ref]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user