Oops.
This commit is contained in:
@@ -816,7 +816,10 @@ void StepManiaLanServer::ServerChat(const CString& message)
|
|||||||
bool StepManiaLanServer::CheckConnection(const unsigned int clientNum)
|
bool StepManiaLanServer::CheckConnection(const unsigned int clientNum)
|
||||||
{
|
{
|
||||||
//If there is an error close the socket.
|
//If there is an error close the socket.
|
||||||
if ( clientNum < Client.size() )
|
|
||||||
|
if ( clientNum >= Client.size() )
|
||||||
|
return false;
|
||||||
|
|
||||||
if (Client[clientNum]->clientSocket.IsError())
|
if (Client[clientNum]->clientSocket.IsError())
|
||||||
{
|
{
|
||||||
Disconnect(clientNum);
|
Disconnect(clientNum);
|
||||||
|
|||||||
Reference in New Issue
Block a user