From ced1285de99057944d962d2d780474606029a953 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 3 Dec 2011 12:49:01 +0100 Subject: [PATCH] prevent traceback. Fixes #7054 --- src/common/xmpp/roster_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/roster_nb.py b/src/common/xmpp/roster_nb.py index a92fd54fe..9f520e3d3 100644 --- a/src/common/xmpp/roster_nb.py +++ b/src/common/xmpp/roster_nb.py @@ -342,7 +342,7 @@ class NonBlockingRoster(PlugIn): self._owner.Dispatcher.ProcessNonBlocking(data) if not self._set: return - if not self._owner: + if not hasattr(self, '_owner') or not self._owner: # Connection has been closed by receiving a for ex, return self._owner.onreceive(None)