mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 15:41:35 +02:00
add extra failsafe in RequestManager when shutting down
This commit is contained in:
@@ -17,6 +17,8 @@ namespace http
|
|||||||
|
|
||||||
void RequestManager::Shutdown()
|
void RequestManager::Shutdown()
|
||||||
{
|
{
|
||||||
|
if (rt_shutting_down)
|
||||||
|
return;
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> g(rt_mutex);
|
std::lock_guard<std::mutex> g(rt_mutex);
|
||||||
rt_shutting_down = true;
|
rt_shutting_down = true;
|
||||||
|
Reference in New Issue
Block a user