Skip to content

Commit 8af4b28

Browse files
authored
Return if miDebugger is not set in threadsRequest
Not sure why it only happens for this function but this fixes the error in the console.
1 parent a7b89c3 commit 8af4b28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mibase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export class MI2DebugSession extends DebugSession {
260260
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
261261
if (!this.miDebugger) {
262262
this.sendResponse(response);
263+
return;
263264
}
264265
this.miDebugger.getThreads().then(
265266
threads => {

0 commit comments

Comments
 (0)