condTimedWait fixed
[public/netxms.git] / src / server / core / session.cpp
index 2b01908..d11adca 100644 (file)
@@ -417,7 +417,7 @@ void ClientSession::WriteThread(void)
          break;
 
       DebugPrintf("Sending message %s\n", 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)
       {
          safe_free(pMsg);
          closesocket(m_hSocket);