Fixed timeout when idling.

This commit is contained in:
SamTV12345 2024-04-28 12:55:32 +02:00
parent 8c42fbf045
commit 70a536cad1

View file

@ -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();
});