# HG changeset patch
# User laurent
# Date 1260348201 -3600
# Node ID 8b2da4b9d4089875a6da0c65985265b74730b92e
# Parent  bc26c42d2eecf6133c9aa616fa5180a75db8c430
Bug that block SetVariableList on Linux fixed

diff -r bc26c42d2eec -r 8b2da4b9d408 targets/Linux/plc_Linux_main.c
--- a/targets/Linux/plc_Linux_main.c	Wed Dec 09 01:11:48 2009 +0100
+++ b/targets/Linux/plc_Linux_main.c	Wed Dec 09 09:43:21 2009 +0100
@@ -159,6 +159,8 @@
     pthread_mutex_lock(&debug_mutex);
     /*__DEBUG is protected by this mutex */
     __DEBUG = !disable;
+    if (disable)
+    	pthread_mutex_unlock(&debug_mutex);
 }
 
 void resumeDebug(void)