[Crash] Fix Repop Race Condition Crash (#4814)

* [Crash] Fix Repop Race Condition Crash

* True fix
This commit is contained in:
Chris Miles
2025-03-29 17:39:40 -05:00
committed by GitHub
parent 5b9f7ff4c9
commit fe08961d25
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,6 @@ WorldServer::WorldServer()
cur_groupid = 0;
last_groupid = 0;
oocmuted = false;
m_process_timer = std::make_unique<EQ::Timer>(1000, true, std::bind(&WorldServer::Process, this));
}
WorldServer::~WorldServer() {
@@ -95,6 +94,7 @@ void WorldServer::Process()
if (it->second.reload_at_unix < std::time(nullptr)) {
ProcessReload(it->second);
it = m_reload_queue.erase(it);
break;
} else {
++it;
}