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:
parent
8dc93aad54
commit
ac38a15c9f
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user