This commit is contained in:
2023-10-09 22:51:54 +03:00
parent c43cb7bfe6
commit 94e77b4607
3 changed files with 7 additions and 12 deletions

View File

@@ -13,9 +13,9 @@ public class InterruptThread extends Thread{
while (true) {
Thread.sleep(sleep_ms);
if (interruptFile.exists()) {
action.call();
FileUtils.writeStringToFile(new File(Constants.ABORTED), "");
FileUtils.forceDelete(interruptFile);
action.call();
}
}
} catch (Exception ex) {