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)
|
||||
}
|
||||
)
|
||||
} catch (error) {
|
||||
if (error == null || error.code !== 'MESSAGE_REMOVED') {
|
||||
throw error
|
||||
}
|
||||
} catch (_) {
|
||||
// there is nothing ideal to do here, do not interrupt event
|
||||
// handling
|
||||
}
|
||||
})
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user