Skip to content

Commit 7e98267

Browse files
committed
Correct some logic
1 parent d39d8c7 commit 7e98267

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

x64dbgpython/x64dbgpython/plugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ void PluginHandleMenuCommand(CBTYPE cbType, PLUG_CB_MENUENTRY* info)
9090
}
9191
case menu_entry::MENU_STOP_SCRIPT:
9292
{
93-
g_Interupt = true;
93+
if ((g_IsScriptRunning) && (!g_Interupt))
94+
g_Interupt = true;
95+
9496
break;
9597
}
9698
case menu_entry::MENU_ABOUT:

0 commit comments

Comments
 (0)