Wait to log in before starting background tasks (#234)

This commit is contained in:
Ulyssa
2024-03-28 21:14:37 -07:00
committed by GitHub
parent 2327658e8c
commit 5a2a7b028d
2 changed files with 5 additions and 0 deletions

View File

@@ -898,6 +898,7 @@ async fn login_normal(
) -> IambResult<()> {
println!("* Logging in for {}...", settings.profile.user_id);
login(worker, settings).await?;
println!("* Syncing...");
worker::do_first_sync(&worker.client, store)
.await
.map_err(IambError::from)?;