From 55c25ce6bae8c2a902a22d3cc71ddaa637ab24c1 Mon Sep 17 00:00:00 2001 From: Devin R Date: Thu, 2 Apr 2020 07:21:24 -0400 Subject: [PATCH] fix encryption feature Mutex::lock instead of RwLock::read --- src/base_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base_client.rs b/src/base_client.rs index 10358945..6341a10b 100644 --- a/src/base_client.rs +++ b/src/base_client.rs @@ -393,7 +393,7 @@ impl Client { // part where we already iterate through the rooms to avoid yet // another room loop. for room in self.joined_rooms.values() { - let room = room.read().unwrap(); + let room = room.lock().await; if !room.is_encrypted() { continue; }