From 9cbec8ac6da9034b247ec8098705289b13db82b7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 12 Aug 2005 07:49:01 +0000 Subject: [PATCH] fix a TB --- src/common/xmpp/transports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/xmpp/transports.py b/src/common/xmpp/transports.py index 9095df2bf..6d3fc95ee 100644 --- a/src/common/xmpp/transports.py +++ b/src/common/xmpp/transports.py @@ -131,7 +131,8 @@ class TCPsocket(PlugIn): if len(received): # length of 0 means disconnect self.DEBUG(received,'got') - self._owner.Dispatcher.Event('', DATA_RECEIVED, received) + if hasattr(self._owner, 'Dispatcher'): + self._owner.Dispatcher.Event('', DATA_RECEIVED, received) else: self.DEBUG('Socket error while receiving data','error') self._owner.disconnected()