From 64a10f48b5ddd0ff0e735e2a80149c43db73997c Mon Sep 17 00:00:00 2001 From: mrexodia Date: Wed, 7 Sep 2016 06:47:53 +0200 Subject: [PATCH] DBG: fixed issue #1052 (deadlock on aborting script) --- src/dbg/simplescript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbg/simplescript.cpp b/src/dbg/simplescript.cpp index ce0ff138..f24d824c 100644 --- a/src/dbg/simplescript.cpp +++ b/src/dbg/simplescript.cpp @@ -321,7 +321,7 @@ static CMDRESULT scriptinternalcmdexec(const char* cmd) else if(scriptisinternalcommand(cmd, "nop")) //do nothing return STATUS_CONTINUE; CMDRESULT res = cmddirectexec(cmd); - while(DbgIsDebugging() && dbgisrunning()) //while not locked (NOTE: possible deadlock) + while(DbgIsDebugging() && dbgisrunning() && !bAbort) //while not locked (NOTE: possible deadlock) Sleep(1); return res; }