Replace infinite while loop with Thread#isAlive loop
This commit is contained in:
parent
fb77717887
commit
30b948b916
|
@ -22,7 +22,7 @@ public final class AnimationManager {
|
|||
}
|
||||
|
||||
private void update() {
|
||||
while (true) {
|
||||
while (Thread.currentThread().isAlive()) {
|
||||
long beforeAnimation = System.nanoTime();
|
||||
|
||||
if (this.animations.size() > 0)
|
||||
|
|
Loading…
Reference in New Issue