SocketThreads fixes for crashes reported in FS #272
http://www.mc-server.org/support/index.php?do=details&task_id=272&project=2 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1061 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -51,12 +51,12 @@ cSocket::xSocket cSocket::GetSocket() const
|
||||
|
||||
|
||||
|
||||
bool cSocket::IsValid(void) const
|
||||
bool cSocket::IsValidSocket(cSocket::xSocket a_Socket)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return (m_Socket != INVALID_SOCKET);
|
||||
return (a_Socket != INVALID_SOCKET);
|
||||
#else // _WIN32
|
||||
return (m_Socket >= 0);
|
||||
return (a_Socket >= 0);
|
||||
#endif // else _WIN32
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user