prevent traceback. Fixes #7054

This commit is contained in:
Yann Leboulanger 2011-12-03 12:49:01 +01:00
parent 703cc865f7
commit ced1285de9
1 changed files with 1 additions and 1 deletions

View File

@ -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)