diff options
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4525,9 +4525,7 @@ irc_initiate_connect (struct server *s) str_vector_free (&servers); - if (!e) - s->state = IRC_CONNECTING; - else + if (e) { irc_destroy_connector (s); @@ -4535,6 +4533,8 @@ irc_initiate_connect (struct server *s) error_free (e); irc_queue_reconnect (s); } + else if (s->state != IRC_CONNECTED) + s->state = IRC_CONNECTING; } // --- Input prompt ------------------------------------------------------------ |