mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
Don't let the user wait for so long
This commit is contained in:
committed by
Alexander Krotov
parent
642276c90c
commit
1a296cbd4e
@@ -242,7 +242,8 @@ pub fn dc_join_securejoin(context: &Context, qr: &str) -> u32 {
|
||||
|
||||
// Bob -> Alice
|
||||
while !context.shall_stop_ongoing() {
|
||||
std::thread::sleep(std::time::Duration::new(0, 3_000_000));
|
||||
// Don't sleep too long, the user is waiting.
|
||||
std::thread::sleep(std::time::Duration::from_millis(200));
|
||||
}
|
||||
cleanup(&context, contact_chat_id, true, join_vg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user