mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 17:39:02 +02:00
bugfix to properly close socket when connected client leaves game lobby
This commit is contained in:
@@ -243,7 +243,10 @@ ClientInterface::~ClientInterface() {
|
||||
if(lang.hasString("PlayerLeftGame",languageList[i]) == true) {
|
||||
sQuitText = lang.get("PlayerLeftGame",languageList[i]);
|
||||
}
|
||||
sendTextMessage(sQuitText,-1,false,languageList[i]);
|
||||
|
||||
if(clientSocket != NULL && clientSocket->isConnected() == true) {
|
||||
sendTextMessage(sQuitText,-1,false,languageList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user