diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2011-12-03 15:49:01 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2011-12-03 15:49:01 +0400 |
commit | ced1285de99057944d962d2d780474606029a953 (patch) | |
tree | d3cd1bf236ebe6ac19648e3347fae0adae8b3169 /src/common/xmpp | |
parent | 703cc865f7a8356f6776199ca824235f2cbfac97 (diff) |
prevent traceback. Fixes #7054
Diffstat (limited to 'src/common/xmpp')
-rw-r--r-- | src/common/xmpp/roster_nb.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stream:error> for ex, return self._owner.onreceive(None) |