mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix bad resource when close file
This commit is contained in:
@@ -134,7 +134,11 @@ export async function download_task(
|
||||
preventClose: true,
|
||||
});
|
||||
} finally {
|
||||
f.close();
|
||||
try {
|
||||
f.close();
|
||||
} catch (_) {
|
||||
null;
|
||||
}
|
||||
}
|
||||
}
|
||||
const errors: unknown[] = [];
|
||||
|
||||
Reference in New Issue
Block a user