aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mempool/mempool_watcher.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mempool/mempool_watcher.ts b/src/mempool/mempool_watcher.ts
index 7a485172d..8314afb0c 100644
--- a/src/mempool/mempool_watcher.ts
+++ b/src/mempool/mempool_watcher.ts
@@ -58,7 +58,9 @@ export class MempoolWatcher {
removed: isRemoved,
...log,
};
- (this._callback as MempoolEventCallback)(logWithDecodedArgsEvent);
+ if (!_.isUndefined(this._callback)) {
+ this._callback(logWithDecodedArgsEvent);
+ }
});
}
}