fix: don't skip portal if we fail to register
This commit is contained in:
parent
7e0a182131
commit
530b159c96
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue