From f90a5705bd65a4ebb5edc9df003a383039fec555 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Apr 2018 08:17:30 +0200 Subject: Change design, fix crash when closing application --- include/Cache.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/Cache.hpp') diff --git a/include/Cache.hpp b/include/Cache.hpp index d78324c..429f652 100644 --- a/include/Cache.hpp +++ b/include/Cache.hpp @@ -44,6 +44,7 @@ namespace dchat { public: Cache(); + ~Cache(); // Creates directory if it doesn't exist (recursively). Throws boost exception on failure static boost::filesystem::path getDchatDir(); @@ -63,5 +64,6 @@ namespace dchat std::vector imageDownloadProcesses; std::vector imageDownloadProcessesQueue; std::mutex imageDownloadMutex; + bool alive; }; } -- cgit v1.2.3