Don't spam 'No lease, going to background.' messages after going into the

background and trying to get a DHCP lease when the client has never had
a lease in the current instance of the process.
This commit is contained in:
Nicholas J. Kain 2011-06-28 06:32:10 -04:00
parent 8dc93aad54
commit ac38a15c9f

View File

@ -43,6 +43,7 @@ static void init_selecting_timeout(struct client_state_t *cs)
if (cs->init) {
if (client_config.background_if_no_lease) {
log_line("No lease, going to background.");
cs->init = 0;
background(cs);
} else if (client_config.abort_if_no_lease) {
log_line("No lease, failing.");