Refaactoring-Thread Interrupt (#3412)

This commit is contained in:
Nikhil Khatwani 2018-01-14 20:30:32 +05:30 committed by Grzegorz Piwowarek
parent 0a343e10cb
commit 5b8e84b26c
1 changed files with 3 additions and 2 deletions

View File

@ -43,8 +43,9 @@ public class ControlSubThread implements Runnable {
try {
Thread.sleep(interval);
} catch (InterruptedException e) {
// no-op, just loop again
}
Thread.currentThread().interrupt();
System.out.println("Thread was interrupted, Failed to complete operation");
}
// do something
}
stopped.set(true);