Browse Source

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 years ago
parent
commit
260722a519

+ 2
- 2
ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/ErrorPanel.java View File

147
 
147
 
148
     @Override
148
     @Override
149
     public void errorDeleted(final DisplayableError error) {
149
     public void errorDeleted(final DisplayableError error) {
150
-        UIUtilities.invokeAndWait(this::checkErrors);
150
+        UIUtilities.invokeLater(this::checkErrors);
151
     }
151
     }
152
 
152
 
153
     @Override
153
     @Override
154
     public void errorAdded(final DisplayableError error) {
154
     public void errorAdded(final DisplayableError error) {
155
-        UIUtilities.invokeAndWait(this::checkErrors);
155
+        UIUtilities.invokeLater(this::checkErrors);
156
     }
156
     }
157
 
157
 
158
     @Override
158
     @Override

Loading…
Cancel
Save