diff options
Diffstat (limited to 'zenserver/zenserver.cpp')
| -rw-r--r-- | zenserver/zenserver.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index d2a15ae76..b26efc6ec 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -192,6 +192,8 @@ public: spdlog::info(ZEN_APP_NAME " exiting"); m_IoContext.stop(); + + Flush(); } void RequestExit(int ExitCode) @@ -237,8 +239,20 @@ public: void Flush() { - m_CasStore->Flush(); - m_CidStore->Flush(); + if (m_CasStore) + m_CasStore->Flush(); + + if (m_CidStore) + m_CidStore->Flush(); + + if (m_CacheService) + m_CacheService->Flush(); + + if (m_StructuredCacheService) + m_StructuredCacheService->Flush(); + + if (m_ProjectStore) + m_ProjectStore->Flush(); } private: |