Don't cancel address claim when caller closes socket
This commit is contained in:
1 parent
78c4b06492
commit
cf4ce0a07d
4 files changed
+7
-15
No files matched your search
+2
-3
@@ -202,10 +202,9 @@ func (alloc *Allocator) Lookup(ident string, r address.Range) (address.Address,
|
||||
}
|
||||
|
||||
// Claim an address that we think we should own (Sync)
|
||||
func (alloc *Allocator) Claim(ident string, addr address.Address, cancelChan <-chan bool) error {
|
||||
func (alloc *Allocator) Claim(ident string, addr address.Address) error {
|
||||
resultChan := make(chan error)
|
||||
op := &claim{resultChan: resultChan, ident: ident, addr: addr,
|
||||
hasBeenCancelled: hasBeenCancelled(cancelChan)}
|
||||
op := &claim{resultChan: resultChan, ident: ident, addr: addr}
|
||||
alloc.doOperation(op, &alloc.pendingClaims)
|
||||
return <-resultChan
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user