diff --git a/src/util/daemon_updater.cpp b/src/util/daemon_updater.cpp index 4dd905e..cb060b2 100644 --- a/src/util/daemon_updater.cpp +++ b/src/util/daemon_updater.cpp @@ -103,7 +103,9 @@ void DaemonUpdater::cancel() std::string DaemonUpdater::httpGet(const std::string& url) { - return httpGetString(url, "[daemon-updater]"); + HttpGetOptions opt; + opt.cancel = &cancel_requested_; + return httpGetString(url, "[daemon-updater]", opt); } bool DaemonUpdater::downloadToFile(const std::string& url, const std::string& destPath) diff --git a/src/util/xmrig_updater.cpp b/src/util/xmrig_updater.cpp index 67453a6..47b8bcc 100644 --- a/src/util/xmrig_updater.cpp +++ b/src/util/xmrig_updater.cpp @@ -92,7 +92,9 @@ void XmrigUpdater::cancel() std::string XmrigUpdater::httpGet(const std::string& url) { - return httpGetString(url, "[xmrig-updater]"); + HttpGetOptions opt; + opt.cancel = &cancel_requested_; + return httpGetString(url, "[xmrig-updater]", opt); } bool XmrigUpdater::downloadToFile(const std::string& url, const std::string& destPath)