mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Wait to log in before starting background tasks (#234)
This commit is contained in:
parent
2327658e8c
commit
5a2a7b028d
2 changed files with 5 additions and 0 deletions
|
@ -1217,6 +1217,10 @@ impl ClientWorker {
|
|||
let settings = self.settings.clone();
|
||||
|
||||
async move {
|
||||
while !client.logged_in() {
|
||||
tokio::time::sleep(Duration::from_millis(100)).await;
|
||||
}
|
||||
|
||||
let load = load_older_forever(&client, &store);
|
||||
let rcpt = send_receipts_forever(&client, &store);
|
||||
let room = refresh_rooms_forever(&client, &store);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue