Fix bad resource when close file

This commit is contained in:
2023-05-22 08:57:51 +08:00
parent c86c125fee
commit 65efeec673

View File

@@ -134,7 +134,11 @@ export async function download_task(
preventClose: true,
});
} finally {
f.close();
try {
f.close();
} catch (_) {
null;
}
}
}
const errors: unknown[] = [];