fix: remove duplicate chan close
This commit is contained in:
parent
6bbfac661a
commit
ea4a22c52d
|
@ -103,7 +103,6 @@ func (l *Lock) Lock(ctx context.Context, requestUnlock func()) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l *Lock) Unlock() error {
|
func (l *Lock) Unlock() error {
|
||||||
close(l.stopHolderPoll)
|
|
||||||
l.once.Do(func() {
|
l.once.Do(func() {
|
||||||
close(l.stopHolderPoll)
|
close(l.stopHolderPoll)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue