Skip to content

Commit 7f7d9c0

Browse files
chore: cleanup on websocket error
1 parent 48d1c6b commit 7f7d9c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/inbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class Inbox implements vscode.Disposable {
5252

5353
this.#socket.on("error", (error) => {
5454
this.notifyError(error)
55+
this.dispose();
5556
})
5657

5758
this.#socket.on("message", (data) => {

0 commit comments

Comments
 (0)