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.
This commit is contained in:
Jan Jurzitza 2018-02-21 18:14:18 +01:00 committed by GitHub
commit 8af4b28453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,6 +260,7 @@ export class MI2DebugSession extends DebugSession {
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void { protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
if (!this.miDebugger) { if (!this.miDebugger) {
this.sendResponse(response); this.sendResponse(response);
return;
} }
this.miDebugger.getThreads().then( this.miDebugger.getThreads().then(
threads => { threads => {