From ac102cc8b06a957a1d66439867848b052467246a Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 20 Nov 2016 14:31:52 +0100 Subject: [PATCH] [Discovery] Fix thread termination --- src/Components/Modules/Discovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/Discovery.cpp b/src/Components/Modules/Discovery.cpp index 83c62f49..fe11ad27 100644 --- a/src/Components/Modules/Discovery.cpp +++ b/src/Components/Modules/Discovery.cpp @@ -98,7 +98,7 @@ namespace Components Discovery::~Discovery() { Discovery::IsPerforming = false; - Discovery::IsPerforming = true; + Discovery::IsTerminating = true; if (Discovery::Thread.joinable()) {