mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
protect for threading
This commit is contained in:
parent
1fc71a28e8
commit
39a745bdaa
@ -302,8 +302,7 @@ class ServerRepository:
|
||||
return task.cont
|
||||
|
||||
# Crazy dereferencing
|
||||
newConnection=newConnection.p()
|
||||
self.qcr.addConnection(newConnection)
|
||||
newConnection = newConnection.p()
|
||||
|
||||
# Add clients information to dictionary
|
||||
id = self.idAllocator.allocate()
|
||||
@ -315,6 +314,9 @@ class ServerRepository:
|
||||
client = self.Client(newConnection, netAddress, doIdBase)
|
||||
self.clientsByConnection[client.connection] = client
|
||||
self.clientsByDoIdBase[client.doIdBase] = client
|
||||
|
||||
# Now we can start listening to that new connection.
|
||||
self.qcr.addConnection(newConnection)
|
||||
|
||||
self.lastConnection = newConnection
|
||||
self.sendDoIdRange(client)
|
||||
|
Loading…
x
Reference in New Issue
Block a user