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-861f7616d084master
parent
8cc20df76f
commit
e5e90e5121
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue