Lobbyserver: Append to the host list instead of trying to its first (possibly non-existing) element

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7391 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-05-10 21:55:46 +00:00 committed by Git SVN Gateway
parent 8cc20df76f
commit e5e90e5121
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class RequestHandler(SocketServer.ThreadingMixIn, SocketServer.StreamRequestHand
logging.debug("(%s) Updated game: %s" % (self.gameHost, self.g)) logging.debug("(%s) Updated game: %s" % (self.gameHost, self.g))
#set gamehost #set gamehost
if not len(self.g.hosts) or not self.g.hosts[0]: if not len(self.g.hosts) or not self.g.hosts[0]:
self.g.hosts[0] = self.gameHost self.g.hosts.append(self.gameHost)
if not protocol.check(self.g, self.gameHost): if not protocol.check(self.g, self.gameHost):
logging.debug("(%s) Removing unreachable game" % self.gameHost) logging.debug("(%s) Removing unreachable game" % self.gameHost)