diff --git a/src/client_list.c b/src/client_list.c index 08d17e5..3550cda 100644 --- a/src/client_list.c +++ b/src/client_list.c @@ -220,6 +220,16 @@ int deleteFromList(char* service_name) } ParodusPrint("Deleting the node\n"); + if(nn_shutdown(curr_node->sock, curr_node->endpoint) < 0) + { + ParodusError ("nn_shutdown socket=%d endpt=%d, err=%d\n", + curr_node->sock, curr_node->endpoint, errno); + } + if (nn_close (curr_node->sock) < 0) + { + ParodusError ("nn_close socket=%d err=%d\n", + curr_node->sock, errno); + } free( curr_node ); curr_node = NULL; ParodusInfo("Deleted successfully and returning..\n");