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())) {
|
if (!(await portal.isLoggedIn())) {
|
||||||
try {
|
try {
|
||||||
await portal.register();
|
await portal.register();
|
||||||
} catch {
|
} catch {}
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
await portal.login();
|
await portal.login();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue