plugins/canfestival/cf_runtime.c
changeset 203 cb9901076a21
parent 178 2390b409eb93
child 235 a66e150f2888
--- a/plugins/canfestival/cf_runtime.c	Tue Aug 12 16:27:07 2008 +0200
+++ b/plugins/canfestival/cf_runtime.c	Wed Aug 20 00:11:40 2008 +0200
@@ -77,12 +77,11 @@
 
 void __cleanup_%(locstr)s()
 {
-    %(nodes_close)s
-    
     // Stop timer thread
-    if(init_level-- > 0)
+    if(init_level-- > 0){
         StopTimerLoop(&Exit);
-
+        %(nodes_close)s
+   }
     #if !defined(WIN32) || defined(__CYGWIN__)
    		TimerCleanup();
     #endif