Add some debug
This commit is contained in:
parent
693db6d3a7
commit
9feebd4582
1 changed files with 6 additions and 1 deletions
|
@ -127,7 +127,12 @@ public class DelayedExecutorService {
|
|||
|
||||
private static void stopRepeatingThread()
|
||||
{
|
||||
repeater.shutdownNow();
|
||||
repeater.shutdown();
|
||||
try {
|
||||
repeater.awaitTermination(1L, TimeUnit.SECONDS);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
repeater=null; // Dispose of so the threads get torn down and the program can stop successfully
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue