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())) {
try {
await portal.register();
} catch {
continue;
}
} catch {}
await portal.login();
}