Merge pull request #681 from mjwaxios/master

Fixed DHCP problem that broke when fast retry was added.
This commit is contained in:
Dan Williams 2022-01-19 10:47:53 -06:00 committed by GitHub
commit 135eb1dd85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
if baseDelay < resendMax && fastRetryLimit == 0 {
baseDelay *= 2
} else {
} else if fastRetryLimit == 0 { // only break if we are at normal delay
break
}
}