fix(xen-api/_watchEvents): dont stop when fail to get records

This commit is contained in:
Julien Fontanet 2019-02-28 16:32:30 +01:00
parent c5a5ef6c93
commit f91d4a07eb

View File

@ -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
}
} }
}) })
) )