|  | @@ -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);
 | 
	
		
			
				|  |  |  
 |