mirror of
https://github.com/Stefan-5422/School-Programming-Projekt-022022.git
synced 2026-09-04 00:46:01 +02:00
Add additional logging
This commit is contained in:
@@ -22,7 +22,11 @@ public class GlobalExecQueue {
|
|||||||
Semaphore s = new Semaphore(0);
|
Semaphore s = new Semaphore(0);
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
while (queue.size() > 0) {
|
while (queue.size() > 0) {
|
||||||
Objects.requireNonNull(queue.poll()).run();
|
try {
|
||||||
|
Objects.requireNonNull(queue.poll()).run();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
s.release();
|
s.release();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user