From f9c87fbd0f8031eac71d9ced43646eacb1065aaf Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 13 Jun 2014 16:26:11 +0100 Subject: [PATCH] Don't wait - cancel - the pd estimate thread .. it might take ages and we don't care about the results ! --- src/RideSummaryWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RideSummaryWindow.cpp b/src/RideSummaryWindow.cpp index 40cb08731..f725dc4ec 100644 --- a/src/RideSummaryWindow.cpp +++ b/src/RideSummaryWindow.cpp @@ -117,7 +117,8 @@ RideSummaryWindow::RideSummaryWindow(Context *context, bool ridesummary) : RideSummaryWindow::~RideSummaryWindow() { - // wait for background thread if needed + // cancel background thread if needed + future.cancel(); future.waitForFinished(); }