mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
thread: Properly clean up meta data of main thread
This commit is contained in:
parent
d517a9893e
commit
0d30d73eb9
@ -496,6 +496,8 @@ void threads_deinit()
|
||||
dummy1->destroy(dummy1);
|
||||
|
||||
main_thread->mutex->lock(main_thread->mutex);
|
||||
main_thread->terminated = TRUE;
|
||||
main_thread->detached_or_joined = TRUE;
|
||||
thread_destroy(main_thread);
|
||||
current_thread->destroy(current_thread);
|
||||
id_mutex->destroy(id_mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user