We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f85a391 commit a71621cCopy full SHA for a71621c
1 file changed
src/com/ss/editor/executor/impl/FXEditorTaskExecutor.java
@@ -5,6 +5,7 @@
5
import java.util.concurrent.atomic.AtomicBoolean;
6
7
import rlib.concurrent.util.ConcurrentUtils;
8
+import rlib.concurrent.util.ThreadUtils;
9
import rlib.util.array.Array;
10
11
/**
@@ -118,7 +119,15 @@ public void run() {
118
119
}
120
121
// обновление состояния задач
- PlatformImpl.runAndWait(fxTask);
122
+ while (true) {
123
+ try {
124
+ PlatformImpl.runAndWait(fxTask);
125
+ break;
126
+ } catch (final IllegalStateException e) {
127
+ LOGGER.warning(this, e);
128
+ ThreadUtils.sleep(1000);
129
+ }
130
131
132
if (executed.isEmpty()) {
133
continue;
0 commit comments