cwSocket.cpp : Log a warning if the socket to destroy() is not found.

This commit is contained in:
kevin.larke 2020-04-17 14:05:14 -04:00
parent d143546748
commit 16fb46f5f9

View File

@ -782,7 +782,10 @@ cw::rc_t cw::sock::destroy( handle_t h, unsigned userId )
sock_t* s;
if((rc = _getMgrAndSocket(h, userId, p, s )) != kOkRC )
{
cwLogWarning("Socket destroy failed. The socket %i could not be found.",userId);
return rc;
}
if((rc = _closeSock(p,s)) != kOkRC )
return rc;