fix(Core/Realms): show realms as offline when no worldserver is running (#26658)

This commit is contained in:
Kitzunu
2026-07-17 08:45:27 +02:00
committed by GitHub
parent 448f07f06e
commit ea96cb4b4d
4 changed files with 12 additions and 0 deletions
+6
View File
@@ -1286,6 +1286,12 @@ void World::Update(uint32 diff)
stmt->SetData(2, realm.Id.Realm);
stmt->SetData(3, uint32(GameTime::GetStartTime().count()));
LoginDatabase.Execute(stmt);
// Re-assert this realm as online in case the offline flag was set externally (e.g. an authserver restart).
LoginDatabasePreparedStatement* onlineStmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_REALM_ONLINE);
onlineStmt->SetData(0, uint8(REALM_FLAG_OFFLINE));
onlineStmt->SetData(1, realm.Id.Realm);
LoginDatabase.Execute(onlineStmt);
}
///- Process Game events when necessary