Explicitly disconnect when refusing to acknowledge a certificate change

This commit is contained in:
mathieui 2014-12-17 19:07:54 +01:00
parent c76279c345
commit 64ef02d586
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -1216,7 +1216,7 @@ def validate_ssl(self, pem):
self.information(_('Unable to write in the config file'), 'Error')
else:
self.information('You refused to validate the certificate. You are now disconnected', 'Info')
self.xmpp.disconnect()
self.disconnect()
new_loop.stop()
asyncio.set_event_loop(old_loop)
asyncio.async(check_input(future))