Browse Source

disconnect immediately after recving a boot message

Darren Ranalli 18 years ago
parent
commit
336b478266
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/distributed/ClientRepositoryBase.py

+ 4 - 0
direct/src/distributed/ClientRepositoryBase.py

@@ -571,6 +571,10 @@ class ClientRepositoryBase(ConnectionRepository):
             self.bootedText = None
             self.notify.warning(
                 "Server is booting us out with no explanation.")
+        
+        # disconnect now, don't wait for send/recv to fail
+        self.stopReaderPollTask()
+        self.lostConnection()
 
     def handleServerHeartbeat(self, di):
         # Got a heartbeat message from the server.