repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 3c30490d54da941e368d54aeb63cf56cf1aef345:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 3c30490d54da941e368d54aeb63cf56cf1aef345
Author: Alexander Barton 
Date:   Sat Dec 20 15:31:30 2014 +0100

    Reset "last try" timer when enabling a passive server

    This results in a new connection attempt as soon as possible.

diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 5f8c392976d2c377e4d35e6799ec81936916c4b4..
index ..221e7a96e8621c37b6f2db3d26d4c0accdf9075a 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -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;
 		}
 	}

-----END OF PAGE-----