mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 08:52:49 +02:00
bugfix in server connection slot shutdown processing, only update server listener if BEFORE game started, not after game exits
This commit is contained in:
@@ -511,6 +511,7 @@ void ConnectionSlot::close() {
|
|||||||
|
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s LINE: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s LINE: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
|
bool updateServerListener = (socket != NULL);
|
||||||
delete socket;
|
delete socket;
|
||||||
socket= NULL;
|
socket= NULL;
|
||||||
|
|
||||||
@@ -520,7 +521,7 @@ void ConnectionSlot::close() {
|
|||||||
//chatSender.clear();
|
//chatSender.clear();
|
||||||
//chatTeamIndex= -1;
|
//chatTeamIndex= -1;
|
||||||
|
|
||||||
if(ready == false) {
|
if(updateServerListener == true && ready == false) {
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s LINE: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s LINE: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
serverInterface->updateListen();
|
serverInterface->updateListen();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user