fix: don't skip portal if we fail to register

This commit is contained in:
Derrick Hammer 2023-06-24 02:29:33 -04:00
parent 7e0a182131
commit 530b159c96
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ export async function downloadObject(cid: string): Promise<ErrTuple> {
if (!(await portal.isLoggedIn())) { if (!(await portal.isLoggedIn())) {
try { try {
await portal.register(); await portal.register();
} catch { } catch {}
continue;
}
await portal.login(); await portal.login();
} }