|
@@ -219,13 +219,15 @@ export class ConnectionManager extends EventTarget {
|
|
|
clearInterval(this.idleDisconnectInterval)
|
|
clearInterval(this.idleDisconnectInterval)
|
|
|
clearTimeout(this.reconnectCountdownInterval)
|
|
clearTimeout(this.reconnectCountdownInterval)
|
|
|
window.removeEventListener('online', this.onOnline)
|
|
window.removeEventListener('online', this.onOnline)
|
|
|
|
|
+
|
|
|
|
|
+ window.setTimeout(() => this.disconnect(), 1000 * delay)
|
|
|
|
|
+
|
|
|
this.changeState({
|
|
this.changeState({
|
|
|
...this.state,
|
|
...this.state,
|
|
|
forceDisconnected: true,
|
|
forceDisconnected: true,
|
|
|
forcedDisconnectDelay: delay,
|
|
forcedDisconnectDelay: delay,
|
|
|
error,
|
|
error,
|
|
|
})
|
|
})
|
|
|
- setTimeout(() => this.disconnect(), 1000)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private onJoinProjectResponse({
|
|
private onJoinProjectResponse({
|