Use Collection.unset() instead of remove() to avoid exceptions.
This commit is contained in:
parent
4ee352fdb2
commit
7e0aa719b4
@ -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]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user