- beter checking for dsiconnected socket for sensitive winsock

This commit is contained in:
SoftCoder
2015-12-30 18:29:27 -08:00
parent 42d3295e9b
commit 27ed0b88fe
4 changed files with 7 additions and 3 deletions

View File

@@ -1819,6 +1819,7 @@ bool Socket::isConnected() {
if(SystemFlags::VERBOSE_MODE_ENABLED) SystemFlags::OutputDebug(SystemFlags::debugError,"SOCKET DISCONNECTED In [%s::%s Line: %d] ERROR Peek failed, err = %d for socket: %d, error = %s, lastSocketError = %d\n",__FILE__,__FUNCTION__,__LINE__,err,sock,getLastSocketErrorFormattedText().c_str(),lastSocketError);
return false;
}
if (isSocketValid() == false) return false;
}
//otherwise the socket is connected