From 78def9ebf8fbe2afa0e162a48bb2f056c22abba7 Mon Sep 17 00:00:00 2001 From: idranme <96647698+idranme@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:09:33 +0800 Subject: [PATCH] fix --- src/ntqqapi/native/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ntqqapi/native/index.ts b/src/ntqqapi/native/index.ts index 500c13f..9606ae4 100644 --- a/src/ntqqapi/native/index.ts +++ b/src/ntqqapi/native/index.ts @@ -38,7 +38,12 @@ export class Native { try { const fileName = path.basename(addon) const dest = path.join(TEMP_DIR, fileName) - await copyFile(addon, dest) + try { + await copyFile(addon, dest) + } catch (e) { + // resource busy or locked? + this.ctx.logger.warn(e) + } this.crychic = require(dest) this.crychic!.init() } catch (e) {