Use Collection.unset() instead of remove() to avoid exceptions.

This commit is contained in:
Julien Fontanet 2015-10-02 14:05:26 +02:00
parent 4ee352fdb2
commit 7e0aa719b4

View File

@ -504,7 +504,7 @@ export class Xapi extends EventEmitter {
const object = objectsByRefs[ref]
if (object) {
this._objects.remove(object.$id)
this._objects.unset(object.$id)
delete objectsByRefs[ref]
}
}