From 2c481b3f269cc445f32ac2b17e58a2e916e16460 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 4 Oct 2006 01:09:11 +0000 Subject: [PATCH] added resetInterestStateForConnectionLoss --- direct/src/distributed/DoInterestManager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index ed4daf6fe6..e7b543df98 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -123,6 +123,14 @@ class DoInterestManager(DirectObject.DirectObject): def getAllInterestsCompleteEvent(self): return 'allInterestsComplete-%s' % DoInterestManager._SerialNum + def resetInterestStateForConnectionLoss(self): + DoInterestManager._interests.clear() + self._outstandingScopes = set() + self._completeEventCount = ScratchPad(num=0) + self._addDebugInterestHistory( + "STATE RESET", "", 0, 0, + 0, []) + def addInterest(self, parentId, zoneIdList, description, event=None, auto=False): """ Look into a (set of) zone(s).