collab_client: Defer on any non-CONNECTED state
parent
3f7745b48b
commit
60dde4edf6
|
@ -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…
Reference in New Issue