sync timer schedule

This commit is contained in:
Jindra Petřík
2022-10-26 11:25:11 +02:00
parent 538c0b79b7
commit d5399a0513

View File

@@ -2515,8 +2515,10 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
}
}
};
if (timer != null) {
timer.schedule(task, msDelay);
synchronized (ImagePanel.this) {
if (timer != null) {
timer.schedule(task, msDelay);
}
}
}