Kaynağa Gözat

Merge branch 'fix_crash_during_handler_removal' of github.com:jenik1/civetweb into fix_crash_during_handler_removal

eugene 5 yıl önce
ebeveyn
işleme
7b3281220d
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      src/civetweb.c

+ 5 - 5
src/civetweb.c

@@ -13535,13 +13535,13 @@ mg_set_handler_type(struct mg_context *phys_ctx,
     if (NULL == pthread_getspecific(sTlsKey))
     {
         is_tls_set = 1;
-        tls.is_master = -1;
-        tls.thread_idx = phys_ctx->starter_thread_idx;
-#if defined(_WIN32)
-        tls.pthread_cond_helper_mutex = NULL;
+        tls.is_master = -1;
+        tls.thread_idx = phys_ctx->starter_thread_idx;
+#if defined(_WIN32)
+        tls.pthread_cond_helper_mutex = NULL;
 #endif
         pthread_setspecific(sTlsKey, &tls);
-    }
+    }
 
 	mg_lock_context(phys_ctx);