@ones-editor/editor 1.1.4-bate.32 → 1.1.4-bate.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -34134,15 +34134,18 @@ ${codeText}
|
|
|
34134
34134
|
if (this.connection)
|
|
34135
34135
|
this.connection.lastReceiveTime = Date.now();
|
|
34136
34136
|
if ("err" in msg || msg.a === "pong") {
|
|
34137
|
+
recoverFlag = false;
|
|
34137
34138
|
this.handleMessage(msg);
|
|
34138
34139
|
} else {
|
|
34139
34140
|
if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a === "hs") {
|
|
34140
|
-
if (
|
|
34141
|
-
recoverFlag
|
|
34142
|
-
|
|
34143
|
-
|
|
34144
|
-
|
|
34145
|
-
|
|
34141
|
+
if (this.retryCount >= 5) {
|
|
34142
|
+
if (!recoverFlag) {
|
|
34143
|
+
recoverFlag = true;
|
|
34144
|
+
} else {
|
|
34145
|
+
logger$2o.info("retrying re-auth success");
|
|
34146
|
+
recoverFlag = false;
|
|
34147
|
+
this.emitAuthRecover();
|
|
34148
|
+
}
|
|
34146
34149
|
}
|
|
34147
34150
|
}
|
|
34148
34151
|
if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a !== "init" && msg.a !== "hs") {
|