]> git.sesse.net Git - vlc/commitdiff
Lua: intf: fix cancellation handling
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 16 Jun 2013 14:39:48 +0000 (17:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 16 Jun 2013 14:45:54 +0000 (17:45 +0300)
The target thread has no defined cancellation points, so simply remove
the vlc_cancel() call. (Adding vlc_savecancel() would work to the same
effects, but with extra code.)

modules/lua/intf.c

index 2f8d91f6bf1ad2b9339b8ec1a93a9a5564640c8c..ade62d30d49127502f9cdd9292403b65a4940859 100644 (file)
@@ -381,7 +381,6 @@ void Close_LuaIntf( vlc_object_t *p_this )
     intf_thread_t *p_intf = (intf_thread_t*)p_this;
     intf_sys_t *p_sys = p_intf->p_sys;
 
-    vlc_cancel( p_sys->thread );
     vlc_join( p_sys->thread, NULL );
     lua_close( p_sys->L );