Skip to content

Commit b78062a

Browse files
committed
Fix condition
1 parent fc5a033 commit b78062a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhcp6/pool/random_address_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (p *RandomAddressPool) ReleaseAddresses(clientID []byte, interfaceIDs [][]b
134134
// expireIdentityAssociations releases IP addresses in identity associations that reached the end of valid lifetime
135135
// back into the address pool. Note it should be called from under the RandomAddressPool.lock.
136136
func (p *RandomAddressPool) expireIdentityAssociations() {
137-
for p.identityAssociationExpirations.Size() < 1 {
137+
for p.identityAssociationExpirations.Size() >= 1 {
138138
expiration := p.identityAssociationExpirations.Peek().(*associationExpiration)
139139
if p.timeNow().Before(expiration.expiresAt) {
140140
break

0 commit comments

Comments
 (0)