diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index 16a42904ff..a647d44c6d 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -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():