Core/Chat: Always save channel info to database on shutdown if persistence is enabled.

Port From (https://github.com/TrinityCore/TrinityCore/commit/a18268156ab5a0e455637f1eb42120edc64a0497)
This commit is contained in:
hondacrx
2022-01-02 19:50:35 -05:00
parent 92c90bf777
commit 418289e41c
+2 -2
View File
@@ -1293,7 +1293,7 @@ namespace Game
Global.WhoListStorageMgr.Update(); Global.WhoListStorageMgr.Update();
} }
if (m_timers[WorldTimers.ChannelSave].Passed()) if (IsStopped || m_timers[WorldTimers.ChannelSave].Passed())
{ {
m_timers[WorldTimers.ChannelSave].Reset(); m_timers[WorldTimers.ChannelSave].Reset();
@@ -1866,7 +1866,7 @@ namespace Game
public uint ShutdownCancel() public uint ShutdownCancel()
{ {
// nothing cancel or too later // nothing cancel or too late
if (m_ShutdownTimer == 0 || IsStopped) if (m_ShutdownTimer == 0 || IsStopped)
return 0; return 0;