From 628f47d7e60ae576ea5f39c952f18c48084b18bb Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Sat, 9 May 2020 04:27:09 +0300 Subject: [PATCH] Hotfix within adding DarkMatterCore/nxdumptool support: fix 'Stop' button functionality --- src/main/java/nsusbloader/Controllers/NxdtController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/nsusbloader/Controllers/NxdtController.java b/src/main/java/nsusbloader/Controllers/NxdtController.java index ecdc0f8..cc758c2 100644 --- a/src/main/java/nsusbloader/Controllers/NxdtController.java +++ b/src/main/java/nsusbloader/Controllers/NxdtController.java @@ -97,7 +97,9 @@ public class NxdtController implements Initializable { * Interrupt thread NXDT button handler * */ private void stopBtnAction(){ - //TODO + if (workThread != null && workThread.isAlive()){ + NxdtTask.cancel(false); + } } public void notifyThreadStarted(boolean isActive, EModule type){