Skip to content

Commit

Permalink
bugfix: Fix resource leaks in the WebSocket engine (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-kun authored May 6, 2024
1 parent fa71b32 commit 44fd11e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/library/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ export class WebsocketEngine implements Engine {
await this.socket?.close();
this.ready = undefined;
this.socket = undefined;
if (this.status !== ConnectionStatus.Disconnected) {
this.setStatus(ConnectionStatus.Disconnected);
}
}

async rpc<
Expand Down

0 comments on commit 44fd11e

Please sign in to comment.