mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-02-26 00:53:27 +03:00
Prevent double emission of disconnect (#968)
This commit is contained in:
@@ -51,10 +51,8 @@ export class MessageIO extends EventEmitter {
|
||||
socket.on("data", (chunk: Buffer) => {
|
||||
this.emit("data", chunk);
|
||||
});
|
||||
// socket.on("end", this.on_disconnected.bind(this));
|
||||
socket.on("error", () => {
|
||||
this.socket = null;
|
||||
this.emit("disconnected");
|
||||
});
|
||||
socket.on("close", () => {
|
||||
this.socket = null;
|
||||
|
||||
Reference in New Issue
Block a user