Fixed DHCP problem that broke when fast retry was added.

Signed-off-by: Michael Wyrick <Michael.Wyrick@caci.com>
This commit is contained in:
Michael Wyrick
2021-12-27 13:27:51 -05:00
parent cc32993e9e
commit fd4c3350ae

View File

@ -455,7 +455,7 @@ func backoffRetry(resendMax time.Duration, f func() (*dhcp4.Packet, error)) (*dh
// only adjust delay time if we are in normal backoff stage // only adjust delay time if we are in normal backoff stage
if baseDelay < resendMax && fastRetryLimit == 0 { if baseDelay < resendMax && fastRetryLimit == 0 {
baseDelay *= 2 baseDelay *= 2
} else { } else if fastRetryLimit == 0 { // only break if we are at normal delay
break break
} }
} }