diff --git a/src/common/xmpp/client_nb.py b/src/common/xmpp/client_nb.py index ebf71ee4205c3ec2afc246c16c4a0d7b692f0c67..04246fd7abfc3323a6184ed690cbc7918d3a91ff 100644 --- a/src/common/xmpp/client_nb.py +++ b/src/common/xmpp/client_nb.py @@ -292,7 +292,8 @@ class NonBlockingClient(NBCommonClient): 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 @@ class Component(NBCommonClient): self.NBComponentBind.PlugOut() -# vim: se ts=3: \ No newline at end of file +# vim: se ts=3: