Disconnect if there is a failure in the connect callback.
This commit is contained in:
parent
6b23dee045
commit
773085b515
1 changed files with 1 additions and 1 deletions
2
main.py
2
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue