mirror of
https://github.com/rancher/plugins.git
synced 2025-07-08 20:53:53 +00:00
Merge pull request #681 from mjwaxios/master
Fixed DHCP problem that broke when fast retry was added.
This commit is contained in:
commit
135eb1dd85
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user