mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-05 10:09:13 +00:00
only close client socket if it has already been opened.
This commit is contained in:
parent
77f2220134
commit
3ca1c9c2b6
@ -1171,10 +1171,12 @@ int overlay_mdp_client_init()
|
||||
|
||||
int overlay_mdp_client_done()
|
||||
{
|
||||
/* Tell MDP server to release all our bindings */
|
||||
overlay_mdp_frame mdp;
|
||||
mdp.packetTypeAndFlags=MDP_GOODBYE;
|
||||
overlay_mdp_send(&mdp,0,0);
|
||||
if (mdp_client_socket!=-1) {
|
||||
/* Tell MDP server to release all our bindings */
|
||||
overlay_mdp_frame mdp;
|
||||
mdp.packetTypeAndFlags=MDP_GOODBYE;
|
||||
overlay_mdp_send(&mdp,0,0);
|
||||
}
|
||||
|
||||
if (overlay_mdp_client_socket_path_len>-1)
|
||||
unlink(overlay_mdp_client_socket_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user