Networking: Attempt a fix for a race condition during Tailscale setup

This commit is contained in:
Alessandro Pignotti 2024-10-20 11:00:35 +02:00
parent 59740754e8
commit 28f85baf59

View file

@ -19,7 +19,8 @@ let exitNode = writable(false);
function loginUrlCb(url)
{
resolveLogin(url);
connectionState.set("LOGINREADY");
resolveLogin(url);
}
function stateUpdateCb(state)
@ -57,7 +58,6 @@ export async function startLogin()
connectionState.set("LOGINSTARTING");
const url = await loginPromise;
networkData.loginUrl = url;
connectionState.set("LOGINREADY");
return url;
}