fix(Core/Realms): show realms as offline when no worldserver is running (#26658)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user