vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Tue Jan 12 22:22:32 2016 +0200| [b49edf56bb79829061a134a8c64724f672a83181] | committer: Rémi Denis-Courmont
http: use vlc_tls_Close() > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b49edf56bb79829061a134a8c64724f672a83181 --- modules/access/http.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/access/http.c b/modules/access/http.c index 6e06d83..518072c 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -1407,16 +1407,11 @@ static void Disconnect( access_t *p_access ) access_sys_t *p_sys = p_access->p_sys; if( p_sys->p_tls != NULL) - { - vlc_tls_SessionDelete( p_sys->p_tls ); - p_sys->p_tls = NULL; - } - if( p_sys->fd != -1) - { + vlc_tls_Close( p_sys->p_tls ); + else if( p_sys->fd != -1) net_Close(p_sys->fd); - p_sys->fd = -1; - } - + p_sys->p_tls = NULL; + p_sys->fd = -1; } /***************************************************************************** _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
