mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
pad: Don't throw on socket.io error
This commit is contained in:
parent
fc9f236977
commit
2301c6ec83
2 changed files with 4 additions and 1 deletions
|
@ -271,7 +271,9 @@ const handshake = () => {
|
|||
pad.collabClient.setStateIdle();
|
||||
pad.collabClient.setIsPendingRevision(true);
|
||||
}
|
||||
throw new Error(`socket.io connection error: ${JSON.stringify(error)}`);
|
||||
// Don't throw an exception. Error events do not indicate problems that are not already
|
||||
// addressed by reconnection logic, so throwing an exception each time there's a socket.io error
|
||||
// just annoys users and fills logs.
|
||||
});
|
||||
|
||||
socket.on('message', (obj) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue