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)