Removed overlooked cout statements and headers. Also added code to deal with the scenario of the server not starting.

This commit is contained in:
Josh Allen
2004-08-28 13:41:22 +00:00
parent 6a25c126ab
commit 6d5b7910a4
3 changed files with 15 additions and 18 deletions
+9 -3
View File
@@ -170,9 +170,15 @@ void NetworkSyncManager::StartUp()
{
CString ServerIP;
if( isLanServer ) {
LANserver->ServerStart();
}
if( isLanServer )
if (LANserver->ServerStart() == false) {
//If the server happens to not start when told,
//Print to log and release the memory where the
//server was held.
isLanServer = false;
LOG->Warn("Server failed to start.");
delete LANserver;
}
if( GetCommandlineArgument( "netip", &ServerIP ) )
PostStartUp(ServerIP);