Commit 19b7b561 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

mms: We can reach MMSTUClose before the keepalive thread was initiated.

parent a80a7048
......@@ -221,10 +221,13 @@ void MMSTUClose( access_t *p_access )
{
access_sys_t *p_sys = p_access->p_sys;
if( p_sys->p_keepalive_thread )
{
vlc_object_kill( p_sys->p_keepalive_thread );
if( !p_sys->p_keepalive_thread->b_thread_error )
vlc_thread_join( p_sys->p_keepalive_thread );
vlc_object_release( p_sys->p_keepalive_thread );
}
/* close connection with server */
MMSClose( p_access );
......
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