- a few bugfixes pointed out by tomreyn.. thanks

This commit is contained in:
Mark Vejvoda
2011-01-07 04:32:41 +00:00
parent 3e809c8c8e
commit a6cd69d9ed
4 changed files with 22 additions and 11 deletions

View File

@@ -1152,6 +1152,14 @@ bool ServerInterface::launchGame(const GameSettings* gameSettings) {
publishToMasterserverThread = NULL;
lastMasterserverHeartbeatTime = 0;
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] ftpServer = %p\n",__FILE__,__FUNCTION__,__LINE__,ftpServer);
if(ftpServer != NULL) {
ftpServer->shutdownAndWait();
delete ftpServer;
ftpServer = NULL;
}
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] needToRepublishToMasterserver = %d\n",__FILE__,__FUNCTION__,__LINE__,needToRepublishToMasterserver);
if(needToRepublishToMasterserver == true) {