Commit 7f40bf76 authored by Robert Schmidt's avatar Robert Schmidt

ASYNC_IF: join threads when destroying link manager

parent 4318072b
...@@ -159,7 +159,8 @@ void destroy_link_manager(link_manager_t *manager) ...@@ -159,7 +159,8 @@ void destroy_link_manager(link_manager_t *manager)
{ {
LOG_D(MAC, "destroying link manager\n"); LOG_D(MAC, "destroying link manager\n");
manager->run = 0; manager->run = 0;
/* todo: force threads to stop (using a dummy message?) */ pthread_join(manager->sender, NULL);
pthread_join(manager->receiver, NULL);
} }
#ifdef SERVER_TEST #ifdef SERVER_TEST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment