Commit 5a2a7b0 1 parent 2327658 commit 5a2a7b0 Copy full SHA for 5a2a7b0
File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -898,6 +898,7 @@ async fn login_normal(
898
898
) -> IambResult < ( ) > {
899
899
println ! ( "* Logging in for {}..." , settings. profile. user_id) ;
900
900
login ( worker, settings) . await ?;
901
+ println ! ( "* Syncing..." ) ;
901
902
worker:: do_first_sync ( & worker. client , store)
902
903
. await
903
904
. map_err ( IambError :: from) ?;
Original file line number Diff line number Diff line change @@ -1217,6 +1217,10 @@ impl ClientWorker {
1217
1217
let settings = self . settings . clone ( ) ;
1218
1218
1219
1219
async move {
1220
+ while !client. logged_in ( ) {
1221
+ tokio:: time:: sleep ( Duration :: from_millis ( 100 ) ) . await ;
1222
+ }
1223
+
1220
1224
let load = load_older_forever ( & client, & store) ;
1221
1225
let rcpt = send_receipts_forever ( & client, & store) ;
1222
1226
let room = refresh_rooms_forever ( & client, & store) ;
You can’t perform that action at this time.
0 commit comments