comparison sat/core/xmpp.py @ 2884:368a60f05d0e

core (xmpp): use the cleaner stopTrying() instead of setting `continueTrying = 0` when connection is not possible due to invalid certificate.
author Goffi <goffi@goffi.org>
date Fri, 05 Apr 2019 21:22:05 +0200
parents 7ab8684784c6
children e9016bfd8cb2
comparison
equal deleted inserted replaced
2883:7e8ca7c1429a 2884:368a60f05d0e
311 _(u"Your server certificate is not valid " 311 _(u"Your server certificate is not valid "
312 u"(its identity can't be checked).\n\n" 312 u"(its identity can't be checked).\n\n"
313 u"This should never happen and may indicate that " 313 u"This should never happen and may indicate that "
314 u"somebody is trying to spy on you.\n" 314 u"somebody is trying to spy on you.\n"
315 u"Please contact your server administrator.")) 315 u"Please contact your server administrator."))
316 self.factory.continueTrying = 0 316 self.factory.stopTrying()
317 except (IndexError, TypeError): 317 except (IndexError, TypeError):
318 pass 318 pass
319 self.conn_deferred.errback(err) 319 self.conn_deferred.errback(err)
320 320
321 def _disconnected(self, reason): 321 def _disconnected(self, reason):