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:
|
||||
return self.doId2do, self.cache
|
||||
|
||||
def abruptCleanup(self):
|
||||
def _handleShutdown(self):
|
||||
"""
|
||||
Call this method to clean up any pending hooks or tasks on
|
||||
distributed objects, but leave the ClientRepository in a sane
|
||||
state for creating more distributed objects.
|
||||
User just killed the window. Clean up quickly.
|
||||
"""
|
||||
self.relatedObjectMgr.abortAllRequests()
|
||||
self.loginFSM.request("shutdown")
|
||||
|
||||
def sendDisconnect(self):
|
||||
if self.isConnected():
|
||||
|
Loading…
x
Reference in New Issue
Block a user