fix(xapi/watchObject): dont break potential promise chain

This commit is contained in:
Julien Fontanet
2021-04-26 16:12:30 +02:00
parent 4e3628c6fb
commit 01ac23162f

View File

@@ -171,7 +171,7 @@ class Xapi extends Base {
const watcher = obj => {
if (predicate(obj)) {
cb(obj)
return cb(obj)
}
}
genericWatchers.add(watcher)