Skip to content

Commit a58eb54

Browse files
committed
Properly delete connections from waitingConnections
1 parent dc8dee0 commit a58eb54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/phpDebug.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ class PhpDebugSession extends vscode.DebugSession {
333333
} else {
334334
connection.sendRunCommand().then(response => this._checkStatus(response));
335335
}
336+
this._waitingConnections.delete(connection);
336337
}
337338
this.sendResponse(response);
338339
}
@@ -525,6 +526,9 @@ class PhpDebugSession extends vscode.DebugSession {
525526
.then(response => connection.close())
526527
.then(() => {
527528
this._connections.delete(id);
529+
if (this._waitingConnections.has(connection)) {
530+
this._waitingConnections.delete(connection);
531+
}
528532
})
529533
.catch(() => {})
530534
)).then(() => {

0 commit comments

Comments
 (0)