From b446adcf06c8e602b9afdf4e3a72c1a4b322bf79 Mon Sep 17 00:00:00 2001 From: niansa Date: Wed, 27 Mar 2024 18:42:06 +0100 Subject: [PATCH] Lock thread_embeds_mutex --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index bf22b93..af76953 100644 --- a/main.cpp +++ b/main.cpp @@ -500,6 +500,7 @@ private: // Get message const auto& msg = ccb.get(); // Add to embed list + std::scoped_lock L(thread_embeds_mutex); thread_embeds[thread_id] = msg; }); }