■ ■ ■ ■ ■ ■
jadx-gui/src/main/java/jadx/gui/jobs/BackgroundExecutor.java
| skipped 144 lines |
145 | 145 | | task.onDone(this); |
146 | 146 | | // treat UI task operations as part of the task to not mix with others |
147 | 147 | | UiUtils.uiRunAndWait(() -> { |
148 | | - | progressPane.setVisible(false); |
149 | 148 | | task.onFinish(this); |
| 149 | + | progressPane.setVisible(false); |
150 | 150 | | }); |
151 | 151 | | } finally { |
152 | 152 | | taskComplete(id); |
| 153 | + | progressPane.changeVisibility(this, false); |
153 | 154 | | } |
154 | 155 | | } |
155 | 156 | | return status; |
| skipped 74 lines |
230 | 231 | | // force termination |
231 | 232 | | task.cancel(); |
232 | 233 | | executor.shutdown(); |
233 | | - | if (executor.awaitTermination(5, TimeUnit.SECONDS)) { |
| 234 | + | if (executor.awaitTermination(2, TimeUnit.SECONDS)) { |
234 | 235 | | LOG.debug("Task cancel complete"); |
235 | 236 | | return; |
236 | 237 | | } |
237 | 238 | | LOG.debug("Forcing tasks cancel"); |
238 | 239 | | executor.shutdownNow(); |
239 | | - | boolean complete = executor.awaitTermination(30, TimeUnit.SECONDS); |
| 240 | + | boolean complete = executor.awaitTermination(5, TimeUnit.SECONDS); |
240 | 241 | | LOG.debug("Forced task cancel status: {}", |
241 | 242 | | complete ? "success" : "fail, still active: " + executor.getActiveCount()); |
242 | 243 | | } |
| skipped 63 lines |