fix: download fails

omfg you stupid only close the websocket after its been downloaded so ws.onclose doesnt kill your download
This commit is contained in:
Maya 2026-05-03 21:09:09 +03:00
parent f8f54da581
commit c505aefd06
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -947,7 +947,6 @@ export class VertdConverter extends Converter {
case "jobFinished": {
this.log(`job finished for file ${input.name}`);
ws.close();
try {
const url = `${apiUrl}/api/download/${msg.data.jobId}/${uploadRes.auth}`;
this.log(`downloading from ${url}`);
@ -974,6 +973,8 @@ export class VertdConverter extends Converter {
} catch (e) {
if (hash) this.failure(hash);
rejectConversion(e);
} finally {
ws.close();
}
break;
}