mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Don't send COMMIT-MESSAGE when socketio connection is not active
This commit is contained in:
parent
d26df86490
commit
fb20c26c5f
2 changed files with 24 additions and 14 deletions
|
@ -201,15 +201,19 @@ function handshake()
|
|||
});
|
||||
|
||||
socket.once('connect', function () {
|
||||
// Setup our own connected flag since socketio one doesn't work accurately
|
||||
socket.realConnected = true;
|
||||
sendClientReady(false);
|
||||
});
|
||||
|
||||
socket.on('reconnect', function () {
|
||||
socket.realConnected = true;
|
||||
pad.collabClient.setChannelState("CONNECTED");
|
||||
pad.sendClientReady(true);
|
||||
});
|
||||
|
||||
socket.on('reconnecting', function() {
|
||||
socket.realConnected = false;
|
||||
pad.collabClient.setChannelState("RECONNECTING");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue