Flush and destroy the send queue before unloading the socket plugins.

This commit is contained in:
Tobias Brunner
2010-06-24 14:30:05 +02:00
parent 07c5aacce8
commit 359063caf7
+1 -1
View File
@@ -104,6 +104,7 @@ static void destroy(private_daemon_t *this)
this->public.ike_sa_manager->flush(this->public.ike_sa_manager); this->public.ike_sa_manager->flush(this->public.ike_sa_manager);
} }
DESTROY_IF(this->public.receiver); DESTROY_IF(this->public.receiver);
DESTROY_IF(this->public.sender);
/* unload plugins to release threads */ /* unload plugins to release threads */
lib->plugins->unload(lib->plugins); lib->plugins->unload(lib->plugins);
#ifdef CAPABILITIES_LIBCAP #ifdef CAPABILITIES_LIBCAP
@@ -122,7 +123,6 @@ static void destroy(private_daemon_t *this)
#endif /* ME */ #endif /* ME */
DESTROY_IF(this->public.backends); DESTROY_IF(this->public.backends);
DESTROY_IF(this->public.credentials); DESTROY_IF(this->public.credentials);
DESTROY_IF(this->public.sender);
DESTROY_IF(this->public.socket); DESTROY_IF(this->public.socket);
/* wait until all threads are gone */ /* wait until all threads are gone */
DESTROY_IF(this->public.processor); DESTROY_IF(this->public.processor);