From e1e99544d127d1af7a224e91303a3626e5dfffc7 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 1 Aug 2019 16:50:52 +0300 Subject: [PATCH] fixed a bug in hdd free space checking --- src/currency_core/currency_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/currency_core/currency_core.cpp b/src/currency_core/currency_core.cpp index f1aa6be6..982b3311 100644 --- a/src/currency_core/currency_core.cpp +++ b/src/currency_core/currency_core.cpp @@ -713,6 +713,9 @@ namespace currency #define MINIMUM_REQUIRED_FREE_SPACE_BYTES (1024 * 1024 * 100) void core::check_free_space() { + if (!m_critical_error_handler) + return; + boost::filesystem::space_info si = boost::filesystem::space(m_config_folder); if (si.available < MINIMUM_REQUIRED_FREE_SPACE_BYTES)