mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #14176: video: destory sip_thread_client earlier
This commit is contained in:
@ -44,7 +44,11 @@ SIPThreadClient::~SIPThreadClient()
|
||||
{
|
||||
if (thread_) {
|
||||
WARN("Destroying thread handle");
|
||||
pj_thread_join(thread_);
|
||||
pj_thread_destroy(thread_);
|
||||
if (pj_thread_join(thread_) != PJ_SUCCESS) {
|
||||
ERROR("Error on thread join");
|
||||
} else if (pj_thread_destroy(thread_) != PJ_SUCCESS) {
|
||||
ERROR("Error on thread destroy");
|
||||
}
|
||||
thread_ = 0;
|
||||
}
|
||||
}
|
||||
|
@ -285,12 +285,12 @@ void VideoReceiveThread::run()
|
||||
}
|
||||
yield();
|
||||
}
|
||||
sipThreadClient_.reset();
|
||||
}
|
||||
|
||||
VideoReceiveThread::~VideoReceiveThread()
|
||||
{
|
||||
receiving_ = false;
|
||||
sipThreadClient_.reset(0);
|
||||
Manager::instance().getVideoControls()->stoppedDecoding(id_, sink_.openedName());
|
||||
ost::Thread::terminate();
|
||||
|
||||
|
Reference in New Issue
Block a user