fix encryption feature Mutex::lock instead of RwLock::read

master
Devin R 2020-04-02 07:21:24 -04:00
parent c172507b5f
commit 55c25ce6ba
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ impl Client {
// part where we already iterate through the rooms to avoid yet // part where we already iterate through the rooms to avoid yet
// another room loop. // another room loop.
for room in self.joined_rooms.values() { for room in self.joined_rooms.values() {
let room = room.read().unwrap(); let room = room.lock().await;
if !room.is_encrypted() { if !room.is_encrypted() {
continue; continue;
} }