fix(xapi/watchObject): dont break potential promise chain
This commit is contained in:
@@ -171,7 +171,7 @@ class Xapi extends Base {
|
||||
|
||||
const watcher = obj => {
|
||||
if (predicate(obj)) {
|
||||
cb(obj)
|
||||
return cb(obj)
|
||||
}
|
||||
}
|
||||
genericWatchers.add(watcher)
|
||||
|
||||
Reference in New Issue
Block a user