Mark thread pool for garbage collection on being shut down
This commit is contained in:
parent
0917ad4173
commit
693db6d3a7
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ public class DelayedExecutorService {
|
||||||
private static void stopRepeatingThread()
|
private static void stopRepeatingThread()
|
||||||
{
|
{
|
||||||
repeater.shutdownNow();
|
repeater.shutdownNow();
|
||||||
|
repeater=null; // Dispose of so the threads get torn down and the program can stop successfully
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onTick()
|
public void onTick()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue