log all nn_close

This commit is contained in:
Bill Williams
2019-03-27 11:35:16 -07:00
parent f58f85bc32
commit 2ad896abc6
2 changed files with 6 additions and 1 deletions

View File

@@ -76,7 +76,11 @@ int addToList( wrp_msg_t **msg)
if(rc < 0)
{
ParodusError ("Unable to connect socket (errno=%d, %s)\n",errno, strerror(errno));
nn_close (sock);
if (nn_close (sock) < 0)
{
ParodusError ("nn_close socket=%d (err=%d, %s)\n",
sock, errno, strerror(errno));
}
}
else

View File

@@ -418,6 +418,7 @@ void *processUpstreamMessage()
ParodusError("Failed to get device_id\n");
}
} else if (WRP_MSG_TYPE__SVC_ALIVE != msgType) {
/* Don't reply to service alive message */
sendUpstreamMsgToServer(&message->msg, message->len);
}
}