From 6dab092b515024ba769e81554c91c0d8b9883264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sat, 25 Sep 2021 17:17:49 +0200 Subject: [PATCH] Join Debug Task on Suspend to avoid races (#2783) --- src/core/Cutter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index f95b1d4e..1fba1124 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -2005,6 +2005,7 @@ void CutterCore::attachDebug(int pid) void CutterCore::suspendDebug() { debugTask->breakTask(); + debugTask->joinTask(); } void CutterCore::stopDebug()