Move 'server_not_there' to a more correct location.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7333 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-05-05 20:00:06 +00:00 committed by Git SVN Gateway
parent e26ca45678
commit b9aea91c74
1 changed files with 1 additions and 2 deletions

View File

@ -2577,8 +2577,6 @@ error:
asprintf(&NetPlay.MOTD, "Disconnected from lobby server. Failed to register game.");
debug(LOG_ERROR, "%s", NetPlay.MOTD);
}
// on error, we don't want to keep hitting the server. Causes massive delays.
server_not_there = true;
return SOCKET_ERROR;
}
@ -2638,6 +2636,7 @@ static void NETregisterServer(int state)
// The socket has been invalidated, so get rid of it. (using it now may cause SIGPIPE).
socketClose(rs_socket);
rs_socket = NULL;
server_not_there = true;
return;
}
}