diff --git a/src/static/js/pad.js b/src/static/js/pad.js index eb5b72cbc..e75f755c5 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -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') return; + if (reason !== 'io server disconnect' && reason !== 'ping timeout') return; socketReconnecting(); socket.connect(); });