fix(xen-api/_watchEvents): dont stop when fail to get records
This commit is contained in:
parent
c5a5ef6c93
commit
f91d4a07eb
@ -997,10 +997,9 @@ export class Xapi extends EventEmitter {
|
|||||||
this._addObject(type, ref, record)
|
this._addObject(type, ref, record)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
} catch (error) {
|
} catch (_) {
|
||||||
if (error == null || error.code !== 'MESSAGE_REMOVED') {
|
// there is nothing ideal to do here, do not interrupt event
|
||||||
throw error
|
// handling
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user