Fix a crash caused by typo in trunk netcode in r7288.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8850 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-12-27 00:27:13 +00:00 committed by Git SVN Gateway
parent 38b7d54ad0
commit 1526b124d2
1 changed files with 2 additions and 2 deletions

View File

@ -2718,8 +2718,8 @@ receive_message:
{
// Write error, most likely client disconnect.
debug(LOG_ERROR, "Failed to send message: %s", strSockError(getSockErr()));
socketClose(connected_bsocket[pMsg->destination]->socket);
connected_bsocket[pMsg->destination]->socket = NULL;
socketClose(connected_bsocket[j]->socket);
connected_bsocket[j]->socket = NULL;
}
}
}