Skip to content

Commit 9fca6f0

Browse files
author
Joe Previte
committed
fixup!: revert setTimeout for heartbeatTimer
1 parent 4d29cd5 commit 9fca6f0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/node/heart.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ export class Heart {
3838
if (typeof this.heartbeatTimer !== "undefined") {
3939
clearTimeout(this.heartbeatTimer)
4040
}
41-
this.heartbeatTimer = setTimeout(async () => {
42-
try {
43-
await heartbeatTimer(this.isActive, this.beat)
44-
} catch (error: any) {
45-
logger.warn(error.message)
46-
}
47-
}, this.heartbeatInterval)
41+
this.heartbeatTimer = setTimeout(() => heartbeatTimer(this.isActive, this.beat), this.heartbeatInterval)
4842
}
4943

5044
/**

0 commit comments

Comments
 (0)