Clean
This commit is contained in:
parent
9c12c5b62e
commit
078384941a
|
@ -169,11 +169,7 @@ export async function doWithLock<T>(
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (timeout) {
|
clearTimeout(timeout)
|
||||||
clearTimeout(timeout)
|
await lock?.unlock()
|
||||||
}
|
|
||||||
if (lock) {
|
|
||||||
await lock.unlock()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue