condTimedWait fixed
[public/netxms.git] / src / agent / core / session.cpp
index 401b66d..ce3f735 100644 (file)
@@ -239,7 +239,7 @@ void CommSession::WriteThread(void)
          break;
 
       DebugPrintf("Sending message %s", CSCPMessageCodeName(ntohs(pMsg->wCode), szBuffer));
          break;
 
       DebugPrintf("Sending message %s", CSCPMessageCodeName(ntohs(pMsg->wCode), szBuffer));
-      if (send(m_hSocket, (const char *)pMsg, ntohl(pMsg->dwSize), 0) <= 0)
+      if (SendEx(m_hSocket, (const char *)pMsg, ntohl(pMsg->dwSize), 0) <= 0)
       {
          free(pMsg);
          break;
       {
          free(pMsg);
          break;