Skip to content

Commit

Permalink
Fixed timeout when idling.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Apr 28, 2024
1 parent 8c42fbf commit 70a536c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/js/pad.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const handshake = async () => {
// The socket.io client will automatically try to reconnect for all reasons other than "io
// server disconnect".
console.log(`Socket disconnected: ${reason}`)
if (reason !== 'io server disconnect' && reason !== 'ping timeout') return;
if (reason !== 'io server disconnect' || reason !== 'ping timeout') return;
socketReconnecting();
socket.connect();
});
Expand Down

0 comments on commit 70a536c

Please sign in to comment.