Commit 9991969
Fix console hang and refactor quit handling
- Fixed issue where exceeding the error limit (five attempts) did
not exit the console, potentially leading to memory leaks.
- Introduced "force_quit" as a helper function to centralize quit
handling.
- Ensured both "do_quit" and "record_error" call "force_quit",
enforcing a consistent function structure.
- Reduced code duplication and improved command dispatching logic.
Co-authored-by: charliechiou <charlie910417@gmail.com>
Change-Id: I2f624a16cc4eb3517bf05a65eac105908300bfd91 parent b36c6b1 commit 9991969
1 file changed
+34
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
163 | 192 | | |
164 | 193 | | |
165 | 194 | | |
166 | 195 | | |
167 | | - | |
168 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
169 | 200 | | |
170 | 201 | | |
171 | 202 | | |
| |||
226 | 257 | | |
227 | 258 | | |
228 | 259 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
0 commit comments