chore(xen-api/_watchEvents): add FIXME

This commit is contained in:
Julien Fontanet 2020-02-10 15:37:42 +01:00
parent a690b9d825
commit 1a4a77066e

View File

@ -989,6 +989,8 @@ export class Xapi extends EventEmitter {
this._processEvents(result.events)
// detect and fix disappearing tasks (e.g. when toolstack restarts)
//
// FIXME: only if 'task' in 'types
if (result.valid_ref_counts.task !== this._nTasks) {
await this._refreshCachedRecords(['task'])
}