core (xmpp): use the cleaner stopTrying() instead of setting continueTrying = 0 when connection is not possible due to invalid certificate.

This commit is contained in:
Goffi 2019-04-05 21:22:05 +02:00
commit 9186fd1a3c

View file

@ -313,7 +313,7 @@ class SatXMPPEntity(object):
u"This should never happen and may indicate that "
u"somebody is trying to spy on you.\n"
u"Please contact your server administrator."))
self.factory.continueTrying = 0
self.factory.stopTrying()
except (IndexError, TypeError):
pass
self.conn_deferred.errback(err)