Skip to content

Commit

Permalink
Fix reconnection after close
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Nov 11, 2024
1 parent b2713ff commit 3907983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/services/RoboPool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class RoboPool {
});

connection.onClose(() => {
console.log(`Disconnected from ${url}. Attempting to reconnect...`);
setTimeout(connectRelay, 1000);
console.log(`Disconnected from ${url}`);
});

this.webSockets[url] = connection;
Expand Down

0 comments on commit 3907983

Please sign in to comment.