Disconnect if there is a failure in the connect callback.

This commit is contained in:
poljar (Damir Jelić) 2018-02-14 11:08:43 +01:00
parent 6b23dee045
commit 773085b515

View file

@ -390,7 +390,7 @@ def connect_cb(data, status, gnutls_rc, sock, error, ip_address):
'Unexpected error: {status}'.format(status=status_value) 'Unexpected error: {status}'.format(status=status_value)
) )
server.schedule_reconnect() server.disconnect(reconnect=True)
return W.WEECHAT_RC_OK return W.WEECHAT_RC_OK