collab_client: Defer on any non-CONNECTED state

rhansen-collab_client
Richard Hansen 2021-03-30 16:50:06 -04:00
parent 3f7745b48b
commit 60dde4edf6
1 changed files with 1 additions and 1 deletions

View File

@ -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();