mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Fixed timeout when idling.
This commit is contained in:
parent
8c42fbf045
commit
70a536cad1
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ const handshake = async () => {
|
||||||
// The socket.io client will automatically try to reconnect for all reasons other than "io
|
// The socket.io client will automatically try to reconnect for all reasons other than "io
|
||||||
// server disconnect".
|
// server disconnect".
|
||||||
console.log(`Socket disconnected: ${reason}`)
|
console.log(`Socket disconnected: ${reason}`)
|
||||||
if (reason !== 'io server disconnect' && reason !== 'ping timeout') return;
|
if (reason !== 'io server disconnect' || reason !== 'ping timeout') return;
|
||||||
socketReconnecting();
|
socketReconnecting();
|
||||||
socket.connect();
|
socket.connect();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue