mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more robust interest cleanup on disconnect
This commit is contained in:
parent
2bfc323fee
commit
6a69160f4e
@ -99,13 +99,11 @@ class ClientRepository(ConnectionRepository):
|
|||||||
else:
|
else:
|
||||||
return self.doId2do, self.cache
|
return self.doId2do, self.cache
|
||||||
|
|
||||||
def abruptCleanup(self):
|
def _handleShutdown(self):
|
||||||
"""
|
"""
|
||||||
Call this method to clean up any pending hooks or tasks on
|
User just killed the window. Clean up quickly.
|
||||||
distributed objects, but leave the ClientRepository in a sane
|
|
||||||
state for creating more distributed objects.
|
|
||||||
"""
|
"""
|
||||||
self.relatedObjectMgr.abortAllRequests()
|
self.loginFSM.request("shutdown")
|
||||||
|
|
||||||
def sendDisconnect(self):
|
def sendDisconnect(self):
|
||||||
if self.isConnected():
|
if self.isConnected():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user