Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 7095290

Browse files
authored
fix: skip self-query if not running (#479)
Make an additional check before setting the timeout to run the self-query later as sometimes the node is shut down before this happens.
1 parent c57f6d7 commit 7095290

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/query-self.ts

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ export class QuerySelf implements Startable {
149149
this.querySelfPromise.resolve()
150150
this.querySelfPromise = undefined
151151

152+
if (!this.started) {
153+
return
154+
}
155+
152156
this.timeoutId = setTimeout(() => {
153157
this.querySelf()
154158
.catch(err => {

0 commit comments

Comments
 (0)