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