From 773085b51515dd39dd3c406e4f4a361c2d3d757e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 14 Feb 2018 11:08:43 +0100 Subject: [PATCH] Disconnect if there is a failure in the connect callback. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3933a1e..e7e6838 100644 --- a/main.py +++ b/main.py @@ -390,7 +390,7 @@ def connect_cb(data, status, gnutls_rc, sock, error, ip_address): 'Unexpected error: {status}'.format(status=status_value) ) - server.schedule_reconnect() + server.disconnect(reconnect=True) return W.WEECHAT_RC_OK