Commit d4bb09c6 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Closed socket when terminate subscription


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@892 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 78cccbec
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * quintiliani@ingv.it
* *
* $Id: nmxp.c,v 1.71 2008-03-05 10:21:12 mtheo Exp $ * $Id: nmxp.c,v 1.72 2008-03-07 17:30:54 mtheo Exp $
* *
*/ */
...@@ -297,6 +297,9 @@ int nmxp_waitReady(int isock) { ...@@ -297,6 +297,9 @@ int nmxp_waitReady(int isock) {
if(buf_app) { if(buf_app) {
free(buf_app); free(buf_app);
} }
/* Close the socket*/
nmxp_closeSocket(isock);
exit(-1);
} else if(length == 4) { } else if(length == 4) {
int32_t app; int32_t app;
rc = nmxp_recv_ctrl(isock, &app, length, 0, &recv_errno); rc = nmxp_recv_ctrl(isock, &app, length, 0, &recv_errno);
......
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