Skip to content

Commit 117f640

Browse files
committed
Fix cortex-debug related debugging issue
1 parent 99099b0 commit 117f640

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: arduino-ide-extension/src/browser/theia/debug/debug-session-manager.ts

+11
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,15 @@ export class DebugSessionManager extends TheiaDebugSessionManager {
6262
}
6363
);
6464
}
65+
async terminateSessions(): Promise<void> {
66+
try {
67+
await super.terminateSessions();
68+
} catch {
69+
// NOOP
70+
}
71+
const session = this.currentSession;
72+
if (session) {
73+
this.destroy(session.id);
74+
}
75+
}
6576
}

0 commit comments

Comments
 (0)