From 2e3e434c3456d6d716b32970c2aa3460bd66b39e Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Fri, 5 Jan 2024 18:49:46 +0100 Subject: [PATCH] Update nordictrackifitadbtreadmill.cpp --- src/nordictrackifitadbtreadmill.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nordictrackifitadbtreadmill.cpp b/src/nordictrackifitadbtreadmill.cpp index c3d62d563..b7118176f 100644 --- a/src/nordictrackifitadbtreadmill.cpp +++ b/src/nordictrackifitadbtreadmill.cpp @@ -491,12 +491,13 @@ void nordictrackifitadbtreadmill::stopLogcatAdbThread() { initiateThreadStop(); logcatAdbThread->quit(); logcatAdbThread->terminate(); - + +#ifdef Q_OS_WIN32 QProcess process; QString command = "/c wmic process where name='adb.exe' delete"; process.start("cmd.exe", QStringList(command.split(' '))); process.waitForFinished(-1); // will wait forever until finished - +#endif logcatAdbThread->wait(); }