Skip to content

Commit

Permalink
Fix shutdown when the io-tp was not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumpera committed Jul 18, 2012
1 parent 3252b41 commit 9a4a5ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mono/metadata/threadpool.c
Expand Up @@ -1145,7 +1145,8 @@ mono_thread_pool_remove_domain_jobs (MonoDomain *domain, int timeout)
threadpool_clear_queue (&async_io_tp, domain);

EnterCriticalSection (&socket_io_data.io_lock);
mono_g_hash_table_foreach_remove (socket_io_data.sock_to_state, remove_sockstate_for_domain, domain);
if (socket_io_data.sock_to_state)
mono_g_hash_table_foreach_remove (socket_io_data.sock_to_state, remove_sockstate_for_domain, domain);

LeaveCriticalSection (&socket_io_data.io_lock);

Expand Down

0 comments on commit 9a4a5ad

Please sign in to comment.