Reset "last try" timer when enabling a passive server
authorAlexander Barton <alex@barton.de>
Sat, 20 Dec 2014 14:31:30 +0000 (15:31 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 20 Dec 2014 14:31:55 +0000 (15:31 +0100)
This results in a new connection attempt as soon as possible.

src/ngircd/conf.c

index 5f8c392..221e7a9 100644 (file)
@@ -618,6 +618,7 @@ Conf_EnablePassiveServer(const char *Name)
                    && (Conf_Server[i].port > 0)) {
                        /* BINGO! Enable server */
                        Conf_Server[i].flags &= ~CONF_SFLAG_DISABLED;
+                       Conf_Server[i].lasttry = 0;
                        return true;
                }
        }