mirror of
https://gitlab.com/niansa/discord_llama.git
synced 2025-03-06 20:48:25 +01:00
Lock thread_embeds_mutex
This commit is contained in:
parent
1daf467102
commit
b446adcf06
1 changed files with 1 additions and 0 deletions
1
main.cpp
1
main.cpp
|
@ -500,6 +500,7 @@ private:
|
||||||
// Get message
|
// Get message
|
||||||
const auto& msg = ccb.get<dpp::message>();
|
const auto& msg = ccb.get<dpp::message>();
|
||||||
// Add to embed list
|
// Add to embed list
|
||||||
|
std::scoped_lock L(thread_embeds_mutex);
|
||||||
thread_embeds[thread_id] = msg;
|
thread_embeds[thread_id] = msg;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue