Remove unnecessary synchronized keyword from GlobalExecQueue

This commit is contained in:
Stone_Red
2022-06-02 19:08:07 +02:00
parent 084869401e
commit 0b4e6114c3
@@ -22,9 +22,7 @@ public class GlobalExecQueue {
Semaphore s = new Semaphore(0);
Platform.runLater(() -> {
while (queue.size() > 0) {
synchronized (GlobalExecQueue.class) {
Objects.requireNonNull(queue.poll()).run();
}
Objects.requireNonNull(queue.poll()).run();
}
s.release();
});