From d8df07625aec624f12377e05554387cdfeef33df Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 21 May 2021 02:00:42 +0200 Subject: Fix deadlock by reference to stack local room outside the function --- plugins/Matrix.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 1c71733..ebaa166 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -164,7 +164,7 @@ namespace QuickMedia { size_t index = 0; private: - std::recursive_mutex user_mutex; + std::mutex user_mutex; std::recursive_mutex room_mutex; std::string name; @@ -639,6 +639,8 @@ namespace QuickMedia { MatrixDelegate *delegate = nullptr; std::optional filter_cached; + std::vector> invite_rooms; + std::unordered_set my_events_transaction_ids; }; } \ No newline at end of file -- cgit v1.2.3