chore(xen-api/_watchEvents): add FIXME
This commit is contained in:
parent
a690b9d825
commit
1a4a77066e
@ -989,6 +989,8 @@ export class Xapi extends EventEmitter {
|
|||||||
this._processEvents(result.events)
|
this._processEvents(result.events)
|
||||||
|
|
||||||
// detect and fix disappearing tasks (e.g. when toolstack restarts)
|
// detect and fix disappearing tasks (e.g. when toolstack restarts)
|
||||||
|
//
|
||||||
|
// FIXME: only if 'task' in 'types
|
||||||
if (result.valid_ref_counts.task !== this._nTasks) {
|
if (result.valid_ref_counts.task !== this._nTasks) {
|
||||||
await this._refreshCachedRecords(['task'])
|
await this._refreshCachedRecords(['task'])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user