]> arthur.barton.de Git - ngircd-alex.git/commitdiff
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 5f8c392976d2c377e4d35e6799ec81936916c4b4..221e7a96e8621c37b6f2db3d26d4c0accdf9075a 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;
                }
        }