Make sure GC can actually happen

This commit is contained in:
embeddedt 2023-04-20 20:02:32 -04:00
parent 21dcf9d3df
commit a0f0600184
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -57,6 +57,7 @@ public class IntegratedWatchdog extends Thread {
nextTick = 0;
curTime = 0;
}
server = null; /* allow GC */
try {
Thread.sleep(nextTick + MAX_TICK_DELTA - curTime);
} catch(InterruptedException ignored) {