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

View File

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