fix: remove duplicate chan close

This commit is contained in:
Derrick Hammer 2024-01-20 11:07:06 -05:00
parent 6bbfac661a
commit ea4a22c52d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 1 deletions

View File

@ -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)
}) })