summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-17 19:07:54 +0100
committermathieui <mathieui@mathieui.net>2014-12-17 19:07:54 +0100
commit64ef02d5869fda37c8c2f133e6486f4b4988b798 (patch)
tree35dd5e68569a424b06d0c2991a7e59ad6cd56165 /src
parentc76279c345df3fb9b43146987a07b8708f389ea9 (diff)
downloadpoezio-64ef02d5869fda37c8c2f133e6486f4b4988b798.tar.gz
poezio-64ef02d5869fda37c8c2f133e6486f4b4988b798.tar.bz2
poezio-64ef02d5869fda37c8c2f133e6486f4b4988b798.tar.xz
poezio-64ef02d5869fda37c8c2f133e6486f4b4988b798.zip
Explicitly disconnect when refusing to acknowledge a certificate change
Diffstat (limited to 'src')
-rw-r--r--src/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 8eb99cc3..6c29e7c2 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -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))