Skip to content

Commit

Permalink
Merge pull request #45 from alexgleason/patch-3
Browse files Browse the repository at this point in the history
Relay: fix autoReconnect
  • Loading branch information
adamritter authored Feb 2, 2024
2 parents 08b6c07 + 30a290c commit 9005e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class RelayC {
this.url,
"reconnecting after " + this.reconnectTimeout / 1000 + "s"
);
this.connect();
this.connect().catch(() => this.#reconnect());
}, this.reconnectTimeout);
}

Expand Down

0 comments on commit 9005e94

Please sign in to comment.