mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Crash] Fix rarer world crash issue where scheduler database was not available (#2789)
This commit is contained in:
parent
4d355afe9d
commit
037be84f38
@ -143,6 +143,10 @@ bool ServerEventScheduler::ValidateDatabaseConnection()
|
|||||||
// this helps inform decisions to tell all zones to reload their events
|
// this helps inform decisions to tell all zones to reload their events
|
||||||
bool ServerEventScheduler::CheckIfEventsChanged()
|
bool ServerEventScheduler::CheckIfEventsChanged()
|
||||||
{
|
{
|
||||||
|
if (!m_database) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
auto events = ServerScheduledEventsRepository::GetWhere(*m_database, "deleted_at is null");
|
auto events = ServerScheduledEventsRepository::GetWhere(*m_database, "deleted_at is null");
|
||||||
|
|
||||||
// first check if the size changed, if it did this is the easiest step
|
// first check if the size changed, if it did this is the easiest step
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user