diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-29 08:17:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-29 08:17:36 +0200 |
commit | f90a5705bd65a4ebb5edc9df003a383039fec555 (patch) | |
tree | f0180d946bddc15a0a13d9148562418cb3a4108e /include/Cache.hpp | |
parent | 68dcd3c4e17355e1c2b640fe1382743d7cb61ea2 (diff) |
Change design, fix crash when closing application
Diffstat (limited to 'include/Cache.hpp')
-rw-r--r-- | include/Cache.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<ImageDownloadInfo> imageDownloadProcesses; std::vector<ImageDownloadInfo> imageDownloadProcessesQueue; std::mutex imageDownloadMutex; + bool alive; }; } |