Commit 1dfbe2b6 authored by konovalovsergey's avatar konovalovsergey

add shutdown script

parent 3b1827af
......@@ -1300,7 +1300,7 @@
}
}
t._state = ConnectionState.Reconnect;
var bIsDisconnectAtAll = t.attemptCount >= t.maxAttemptCount;
var bIsDisconnectAtAll = (4001 === evt.code || t.attemptCount >= t.maxAttemptCount);
if (bIsDisconnectAtAll) {
t._state = ConnectionState.ClosedAll;
}
......@@ -1308,7 +1308,7 @@
t.onDisconnect(evt.reason, bIsDisconnectAtAll, t.isCloseCoAuthoring);
}
//Try reconect
if (t.attemptCount < t.maxAttemptCount) {
if (!bIsDisconnectAtAll) {
t._tryReconnect();
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment