Send error reply and abandon target list on unhandled timeout.

This commit is contained in:
Gareth McMullin 2015-03-26 20:42:47 -07:00
parent f5ef8671ab
commit bda4279028
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ main(int argc, char **argv)
TRY_CATCH(e, EXCEPTION_ALL) {
gdb_main();
}
if (e.type == EXCEPTION_ERROR) {
if (e.type) {
gdb_putpacketz("EFF");
target_list_free();
morse("TARGET LOST.", 1);