From beeeec34f77c9fc2a1cba923e412b6d3ed851834 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 18 Sep 2023 17:42:09 +0200 Subject: [PATCH] sdk: Wait on sync beat asynchronously --- crates/matrix-sdk/src/room/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index 9aafd5855..6b06cafb3 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -1221,7 +1221,7 @@ impl Room { // TODO do we want to return an error here if we time out? This // could be quite useful if someone wants to enable encryption and // send a message right after it's enabled. - self.client.inner.sync_beat.listen().wait_timeout(SYNC_WAIT_TIME); + _ = timeout(self.client.inner.sync_beat.listen(), SYNC_WAIT_TIME).await; } Ok(())