Skip to content

Commit 16efe8f

Browse files
committed
fix unlock safe
1 parent 2f6e861 commit 16efe8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

namedmutexsm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (nm *NamedMutexSM) UnlockSafe(slug interface{}) bool {
2424
if !vb {
2525
return false
2626
}
27-
v2.(*sync.RWMutex).Unlock()
27+
v2.(*sync.Mutex).Unlock()
2828
return true
2929
}
3030

0 commit comments

Comments
 (0)