mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复进程锁可能不会被正常移除的问题
This commit is contained in:
1 parent
cb611d8f08
commit
55754b2e20
4 files changed
+6
-6
No files matched your search
@@ -23,6 +23,7 @@ export async function load(call: Entry) {
|
||||
};
|
||||
await fs.writeFile(lockfile, JSON.stringify(context));
|
||||
global.onDestory.push(() => {
|
||||
fs.removeSync(lockfile);
|
||||
fs.emptyDirSync(tmpdir);
|
||||
});
|
||||
require('../lib/i18n');
|
||||
|
||||
Reference in new issue
Block a user