Fix MultiMutex unlock when cancelled
This commit is contained in:
@@ -31,8 +31,8 @@ open class MultiMutex<T : Any> {
|
||||
contract {
|
||||
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
|
||||
}
|
||||
lock(element)
|
||||
return try {
|
||||
lock(element)
|
||||
block()
|
||||
} finally {
|
||||
unlock(element)
|
||||
|
||||
Reference in New Issue
Block a user