mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
collab_client: Defer on any non-CONNECTED state
This commit is contained in:
parent
3f7745b48b
commit
60dde4edf6
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
|
|||
func.call(this, ...args);
|
||||
};
|
||||
action.tag = tag;
|
||||
if (channelState === 'CONNECTING') {
|
||||
if (channelState !== 'CONNECTED') {
|
||||
deferredActions.push(action);
|
||||
} else {
|
||||
action();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue