Merge remote-tracking branch 'origin/development'
[NeonServV5.git] / src / main.c
index b93180b009b538f64a8764274534abb6daa4800c..23903d93cc26c9ddf4e8804af3887713bd1f244a 100644 (file)
@@ -241,10 +241,10 @@ int getRunningThreads() {
 }
 
 static void main_start_threads() {
-    int tid_id = 0;
     int worker_threads = get_int_field("General.worker_threads");
     if(!worker_threads) worker_threads = 1;
     #ifdef HAVE_THREADS
+    int tid_id = 0;
     {
         current_threads = calloc(worker_threads, sizeof(*current_threads));
         for(tid_id = 0; tid_id < worker_threads; tid_id++) {