Fix resetting
This commit is contained in:
parent
d8058d396c
commit
c94d732f24
11 changed files with 161 additions and 56 deletions
|
|
@ -77,7 +77,7 @@ export class FetchController {
|
|||
*/
|
||||
public finishReset(): void {
|
||||
if (!this.isResetting) {
|
||||
throw new Error("Cannot finish reset when not resetting");
|
||||
return;
|
||||
}
|
||||
|
||||
this.isResetting = false;
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ export class WebSocketManager {
|
|||
cursors: ClientCursors[]
|
||||
) => Promise<void>)[] = [];
|
||||
|
||||
private webSocket: WebSocket | undefined;
|
||||
|
||||
private isStopped = true;
|
||||
private resolveDisconnectingPromise: null | (() => unknown) = null;
|
||||
private reconnectTimeoutId: ReturnType<typeof setTimeout> | undefined;
|
||||
|
||||
private readonly outstandingPromises: Promise<unknown>[] = [];
|
||||
|
||||
private webSocket: WebSocket | undefined;
|
||||
private readonly webSocketFactoryImplementation: typeof globalThis.WebSocket;
|
||||
|
||||
public constructor(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue