Author: asterix Date: 2008-10-16 19:19:22 +0200 (Thu, 16 Oct 2008) New Revision: 10535
Modified: trunk/src/common/xmpp/client_nb.py Log: prevent traceback. Fixes #4319
Modified: trunk/src/common/xmpp/client_nb.py =================================================================== --- trunk/src/common/xmpp/client_nb.py 2008-10-14 15:33:20 UTC (rev 10534) +++ trunk/src/common/xmpp/client_nb.py 2008-10-16 17:19:22 UTC (rev 10535) @@ -292,7 +292,8 @@ def _on_auth_bind(self, data): if data: self.Dispatcher.ProcessNonBlocking(data) - if self.NonBlockingBind.bound is None: + if not hasattr(self, NonBlockingBind) or self.NonBlockingBind.bound is \ + None: return self.NonBlockingBind.NonBlockingBind(self._Resource, self._on_sasl_auth) return True @@ -408,4 +409,4 @@ self.NBComponentBind.PlugOut()
-# vim: se ts=3: \ No newline at end of file +# vim: se ts=3: