Commit 519ac52b authored by Mickaël Turnel's avatar Mickaël Turnel

Wait for the async rtp thread to finish before destroying the rtp session

parent 3f2916d2
......@@ -1567,6 +1567,7 @@ void rtp_session_uninit (RtpSession * session)
{
#if defined(_WIN32) || defined(_WIN32_WCE)
session->rtp.is_win_thread_running = FALSE;
ortp_thread_join(session->rtp.win_t, NULL);
flushq(&session->rtp.winrq, FLUSHALL);
ortp_mutex_destroy(&session->rtp.winrq_lock);
#endif
......
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