Skip to content
Snippets Groups Projects
Commit 1cc4783b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

turn transport: destroy ioqueue on destruction

Change-Id: Iaad641846fdd69b4f421302bcbfb1a1df7878238
parent c14fdcb6
No related branches found
No related tags found
No related merge requests found
...@@ -122,8 +122,11 @@ TurnTransportPimpl::~TurnTransportPimpl() ...@@ -122,8 +122,11 @@ TurnTransportPimpl::~TurnTransportPimpl()
ioJobQuit = true; ioJobQuit = true;
if (ioWorker.joinable()) if (ioWorker.joinable())
ioWorker.join(); ioWorker.join();
if (stunConfig.ioqueue)
pj_ioqueue_destroy(stunConfig.ioqueue);
if (stunConfig.timer_heap)
pj_timer_heap_destroy(stunConfig.timer_heap);
pj_caching_pool_destroy(&poolCache); pj_caching_pool_destroy(&poolCache);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment