diff --git a/src/securejoin.rs b/src/securejoin.rs index a06db28da..8ee9f9f9d 100644 --- a/src/securejoin.rs +++ b/src/securejoin.rs @@ -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) }