Skip to content

Commit a71621c

Browse files
committed
фикс ошибки
1 parent f85a391 commit a71621c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/com/ss/editor/executor/impl/FXEditorTaskExecutor.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.util.concurrent.atomic.AtomicBoolean;
66

77
import rlib.concurrent.util.ConcurrentUtils;
8+
import rlib.concurrent.util.ThreadUtils;
89
import rlib.util.array.Array;
910

1011
/**
@@ -118,7 +119,15 @@ public void run() {
118119
}
119120

120121
// обновление состояния задач
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+
}
122131

123132
if (executed.isEmpty()) {
124133
continue;

0 commit comments

Comments
 (0)