No need to check b_thread... there is ALWAYS a thread here
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 16 Aug 2007 19:06:22 +0000 (19:06 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 16 Aug 2007 19:06:22 +0000 (19:06 +0000)
modules/access_output/bonjour.c

index 1f097c8..0749a85 100644 (file)
@@ -289,12 +289,8 @@ void bonjour_stop_service( void *_p_sys )
 {
     bonjour_t *p_sys = (bonjour_t *)_p_sys;
 
-    if( p_sys->poll_thread->b_thread )
-    {
-        vlc_object_kill( p_sys->poll_thread );
-        vlc_thread_join( p_sys->poll_thread );
-    }
-
+    vlc_object_kill( p_sys->poll_thread );
+    vlc_thread_join( p_sys->poll_thread );
     vlc_object_destroy( p_sys->poll_thread );
 
     if( p_sys->group != NULL )