Skip to content

Commit

Permalink
Update nordictrackifitadbtreadmill.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein authored Jan 5, 2024
1 parent 045e62a commit 2e3e434
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nordictrackifitadbtreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2e3e434

Please sign in to comment.