Browse Source

fix for logout while on ship

Samir Naik 19 years ago
parent
commit
3aa590e20e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/distributed/DistributedCartesianGrid.py

+ 5 - 0
direct/src/distributed/DistributedCartesianGrid.py

@@ -89,6 +89,11 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
                 removeEvent = None
             self.cr.removeInterest(self.gridVisContext, removeEvent)
             self.gridVisContext = None
+        else:
+            # if we were given an event but we have not interest open,
+            # just send the event right away
+            if event is not None:
+                messenger.send(event)
         self.visAvatar = None
         self.visZone = None