aboutsummaryrefslogtreecommitdiff
path: root/include/Cache.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-29 08:17:30 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-29 08:17:36 +0200
commitf90a5705bd65a4ebb5edc9df003a383039fec555 (patch)
treef0180d946bddc15a0a13d9148562418cb3a4108e /include/Cache.hpp
parent68dcd3c4e17355e1c2b640fe1382743d7cb61ea2 (diff)
Change design, fix crash when closing application
Diffstat (limited to 'include/Cache.hpp')
-rw-r--r--include/Cache.hpp2
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;
};
}