mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:04:33 +00:00
fix(sandbox): serialize registry mutations and lock usage
This commit is contained in:
@@ -70,7 +70,7 @@ function isRegistryFile<T extends RegistryEntry>(value: unknown): value is Regis
|
||||
}
|
||||
|
||||
async function withRegistryLock<T>(registryPath: string, fn: () => Promise<T>): Promise<T> {
|
||||
const lock = await acquireSessionWriteLock({ sessionFile: registryPath });
|
||||
const lock = await acquireSessionWriteLock({ sessionFile: registryPath, allowReentrant: false });
|
||||
try {
|
||||
return await fn();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user