diff options
Diffstat (limited to 'src/operations')
-rw-r--r-- | src/operations/state.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operations/state.ts b/src/operations/state.ts index f571fe93a..246a71266 100644 --- a/src/operations/state.ts +++ b/src/operations/state.ts @@ -53,9 +53,9 @@ export class InternalWalletState { logger.trace("Notification", n); for (const l of this.listeners) { const nc = JSON.parse(JSON.stringify(n)); - setImmediate(() => { + setTimeout(() => { l(nc); - }); + }, 0); } } |