editor: Don't allow edits during reconnecting
Not the best fix but better than the current status quo.backend-test
parent
d8e067a5f9
commit
b2a723e57f
|
@ -173,8 +173,20 @@ function sendClientReady(isReconnect, messageType)
|
|||
//this is a reconnect, lets tell the server our revisionnumber
|
||||
if(isReconnect == true)
|
||||
{
|
||||
// Hammer approach for now. This is obviously wrong and needs a proper fix
|
||||
// TODO: See https://github.com/ether/etherpad-lite/issues/3830
|
||||
document.location=document.location;
|
||||
|
||||
// Switching to pad should work but doesn't...
|
||||
// return pad.switchToPad(padId); // hacky but whatever.
|
||||
// It might be related to Auth because failure logs...
|
||||
// [ERROR] console - Auth was never applied to a session.
|
||||
// If you are using the stress-test tool then restart Etherpad
|
||||
// and the Stress test tool.
|
||||
|
||||
msg.client_rev=pad.collabClient.getCurrentRevisionNumber();
|
||||
msg.reconnect=true;
|
||||
|
||||
}
|
||||
|
||||
socket.json.send(msg);
|
||||
|
@ -210,6 +222,7 @@ function handshake()
|
|||
});
|
||||
|
||||
socket.on('reconnecting', function() {
|
||||
padeditor.disable();
|
||||
pad.collabClient.setStateIdle();
|
||||
pad.collabClient.setIsPendingRevision(true);
|
||||
pad.collabClient.setChannelState("RECONNECTING");
|
||||
|
|
Loading…
Reference in New Issue