fix(Xapi#_waitObjectState): fix failure when object is initially missing
This commit is contained in:
parent
12eaceb032
commit
9ad615b0ff
@ -240,7 +240,7 @@ export default class Xapi extends XapiBase {
|
||||
//
|
||||
// Faster than _waitObject() with a function.
|
||||
_waitObjectState (idOrUuidOrRef, predicate) {
|
||||
const object = this.getObject(idOrUuidOrRef)
|
||||
const object = this.getObject(idOrUuidOrRef, null)
|
||||
if (object && predicate(object)) {
|
||||
return object
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user