Commit b49edf56 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: use vlc_tls_Close()

parent 153d9e35
...@@ -1407,16 +1407,11 @@ static void Disconnect( access_t *p_access ) ...@@ -1407,16 +1407,11 @@ static void Disconnect( access_t *p_access )
access_sys_t *p_sys = p_access->p_sys; access_sys_t *p_sys = p_access->p_sys;
if( p_sys->p_tls != NULL) if( p_sys->p_tls != NULL)
{ vlc_tls_Close( p_sys->p_tls );
vlc_tls_SessionDelete( p_sys->p_tls ); else if( p_sys->fd != -1)
p_sys->p_tls = NULL;
}
if( p_sys->fd != -1)
{
net_Close(p_sys->fd); net_Close(p_sys->fd);
p_sys->fd = -1; p_sys->p_tls = NULL;
} p_sys->fd = -1;
} }
/***************************************************************************** /*****************************************************************************
......
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