Skip to content

Commit 64ea7b7

Browse files
fix: catch connection error on tick listener
1 parent c0869f7 commit 64ea7b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/listener/tickDetector.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class TickDetector {
3434
console.log('Connected to Tick Detector');
3535
});
3636

37+
this.socket.on('connect_error', (error) => {
38+
console.log('Connection Error', error)
39+
});
40+
3741
this.socket.on('tick', async (data) => {
3842
let tickTime = new Date(data);
3943
let guilds = await this.db.model.guild.find({

0 commit comments

Comments
 (0)