mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-28 13:15:25 +00:00
fix(connection): onClose -> onDidDispose protocol
This commit is contained in:
parent
52acb50ed7
commit
1bf3036597
@ -54,7 +54,7 @@ export abstract class Connection {
|
||||
export class ManagementConnection extends Connection {
|
||||
public constructor(protected protocol: Protocol, token: string) {
|
||||
super(protocol, token);
|
||||
protocol.onClose(() => this.dispose()); // Explicit close.
|
||||
protocol.onDidDispose(() => this.dispose()); // Explicit close.
|
||||
protocol.onSocketClose(() => this.setOffline()); // Might reconnect.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user