From 3aa590e20ec7c1ae55be5da4a55e15d7264e909c Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Thu, 4 May 2006 21:55:45 +0000 Subject: [PATCH] fix for logout while on ship --- direct/src/distributed/DistributedCartesianGrid.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/distributed/DistributedCartesianGrid.py b/direct/src/distributed/DistributedCartesianGrid.py index 639df98038..d1a67cbb09 100755 --- a/direct/src/distributed/DistributedCartesianGrid.py +++ b/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