Fixed freeze on debug suspend.
authorLolitech
Wed, 09 Dec 2009 09:41:00 +0100
changeset 484 3d0c06e2648c
parent 483 bc26c42d2eec
child 488 edbd8688a6a1
Fixed freeze on debug suspend.
targets/Win32/plc_Win32_main.c
--- a/targets/Win32/plc_Win32_main.c	Wed Dec 09 01:11:48 2009 +0100
+++ b/targets/Win32/plc_Win32_main.c	Wed Dec 09 09:41:00 2009 +0100
@@ -187,6 +187,8 @@
     WaitForSingleObject(debug_sem, INFINITE);
     /*__DEBUG is protected by this mutex */
     __DEBUG = !disable;
+    if(disable)
+        ReleaseSemaphore(debug_sem, 1, NULL);
 }
 
 void resumeDebug()