mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
distributed: Fix two ServerRepository issues in Python 3
This commit is contained in:
parent
ed73394275
commit
316d254c64
@ -628,7 +628,7 @@ class ServerRepository:
|
|||||||
del self.clientsByConnection[client.connection]
|
del self.clientsByConnection[client.connection]
|
||||||
del self.clientsByDoIdBase[client.doIdBase]
|
del self.clientsByDoIdBase[client.doIdBase]
|
||||||
|
|
||||||
id = client.doIdBase / self.doIdRange
|
id = client.doIdBase // self.doIdRange
|
||||||
self.idAllocator.free(id)
|
self.idAllocator.free(id)
|
||||||
|
|
||||||
self.qcr.removeConnection(client.connection)
|
self.qcr.removeConnection(client.connection)
|
||||||
@ -689,7 +689,7 @@ class ServerRepository:
|
|||||||
def clientHardDisconnectTask(self, task):
|
def clientHardDisconnectTask(self, task):
|
||||||
""" client did not tell us he was leaving but we lost connection to
|
""" client did not tell us he was leaving but we lost connection to
|
||||||
him, so we need to update our data and tell others """
|
him, so we need to update our data and tell others """
|
||||||
for client in self.clientsByConnection.values():
|
for client in list(self.clientsByConnection.values()):
|
||||||
if not self.qcr.isConnectionOk(client.connection):
|
if not self.qcr.isConnectionOk(client.connection):
|
||||||
self.handleClientDisconnect(client)
|
self.handleClientDisconnect(client)
|
||||||
return Task.cont
|
return Task.cont
|
||||||
|
Loading…
x
Reference in New Issue
Block a user