[World] Fix Rarer Reload Deadlock (#4893)

This commit is contained in:
Chris Miles
2025-05-16 13:38:42 -05:00
committed by GitHub
parent a56bb52808
commit c7a463420b
3 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -162,7 +162,8 @@ void EQEmuApiWorldDataService::reload(Json::Value &r, const std::vector<std::str
for (auto &t: ServerReload::GetTypes()) {
if (std::to_string(t) == command || Strings::ToLower(ServerReload::GetName(t)) == command) {
message(r, fmt::format("Reloading [{}] globally", ServerReload::GetName(t)));
zoneserver_list.SendServerReload(t, nullptr);
LogInfo("Queueing reload of type [{}] to zones", ServerReload::GetName(t));
zoneserver_list.QueueServerReload(t);
}
found_command = true;
}