소스 검색

Don't block for the EDT when an error is raised.

This is prone to race conditions if an error occurs when
the EDT is waiting on a lock owned by the erroring thread.

Fixes DMDirc/DMDirc#805
pull/533/head
Chris Smith 7 년 전
부모
커밋
260722a519
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/ErrorPanel.java

+ 2
- 2
ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/ErrorPanel.java 파일 보기

@@ -147,12 +147,12 @@ public class ErrorPanel extends StatusbarPopupPanel<JLabel> implements ErrorsDia
147 147
 
148 148
     @Override
149 149
     public void errorDeleted(final DisplayableError error) {
150
-        UIUtilities.invokeAndWait(this::checkErrors);
150
+        UIUtilities.invokeLater(this::checkErrors);
151 151
     }
152 152
 
153 153
     @Override
154 154
     public void errorAdded(final DisplayableError error) {
155
-        UIUtilities.invokeAndWait(this::checkErrors);
155
+        UIUtilities.invokeLater(this::checkErrors);
156 156
     }
157 157
 
158 158
     @Override

Loading…
취소
저장