MCPcopy Create free account
hub / github.com/Marus/cortex-debug / disposeClient

Method disposeClient

src/frontend/swo/sources/socket.ts:96–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 private disposeClient() {
97 try {
98 if (this.connected) {
99 this.connected = false;
100 this.emit('disconnected');
101 }
102 if (this.client) {
103 const saved = this.client;
104 this.client = null;
105 saved.destroy();
106 }
107 }
108 catch (e) {
109 // For debug only
110 console.log(`Socked destroy error ${e}`);
111 }
112 }
113
114 public dispose() {
115 if (this.timer) {

Callers 2

startMethod · 0.95
disposeMethod · 0.95

Calls 1

logMethod · 0.80

Tested by

no test coverage detected