[Crash] Fix reload concurrency crash when ran from Spire (#4733)

This commit is contained in:
Chris Miles 2025-03-01 18:05:28 -06:00 committed by GitHub
parent c3b8cc9744
commit 5b94e736b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4500,13 +4500,6 @@ void WorldServer::QueueReload(ServerReload::Request r)
m_reload_mutex.lock();
int64_t reload_at = r.reload_at_unix - std::time(nullptr);
// If the reload is set to happen now, process it immediately versus queuing it
if (reload_at <= 0) {
ProcessReload(r);
m_reload_mutex.unlock();
return;
}
LogInfo(
"Queuing reload for [{}] ({}) to reload in [{}]",
ServerReload::GetName(r.type),