From c6202d42825acbcae99c8690a21b4dc23c73ac9c Mon Sep 17 00:00:00 2001 From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> Date: Fri, 6 Feb 2009 18:39:52 -0500 Subject: [PATCH] Join thread before leaving --- src/sipvoiplink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sipvoiplink.cpp b/src/sipvoiplink.cpp index 96c461e950..b19b12dbe7 100644 --- a/src/sipvoiplink.cpp +++ b/src/sipvoiplink.cpp @@ -1409,7 +1409,8 @@ SIPVoIPLink::SIPCallAnswered(SIPCall *call, pjsip_rx_data *rdata) _debug("UserAgent: Shutting down...\n"); busy_sleep(1000); } - + + pj_thread_join( thread ); pj_thread_destroy( thread ); thread = NULL; -- GitLab