Commit b7a3056
committed
Don't kill running program if we didn't start it
Previously, the debugger would kill any program started with brickrun
even if it wasn't started from this extension. This means that the
debugger would say that console-runner was busy and not run the users
program, but also the currently running program would be killed, so it
would look like the remote device was not actually running a program.
This fixes the problem by keeping track of the debug session ID and
only sends the kill signal if the debug session actually started a
program and it has not ended yet.1 parent 8ce744f commit b7a3056
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
0 commit comments