No need to check b_thread... there is ALWAYS a thread here
[vlc.git] / 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 )