Skip to content

Commit

Permalink
Merge pull request #3080 from Windchild292/dev_Windchild_LoadCancelCa…
Browse files Browse the repository at this point in the history
…ncellationException

Fixing CancellationException During Cancelled Startup
  • Loading branch information
Windchild292 authored Jan 26, 2022
2 parents 3729daa + 2edcfda commit 521a1e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MekHQ/src/mekhq/gui/dialog/DataLoadingDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import java.io.FileInputStream;
import java.time.LocalDate;
import java.util.ResourceBundle;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;

public class DataLoadingDialog extends JDialog implements PropertyChangeListener {
Expand Down Expand Up @@ -268,7 +269,7 @@ public void done() {
Campaign campaign = null;
try {
campaign = get();
} catch (InterruptedException e) {
} catch (InterruptedException | CancellationException e) {
cancelled = true;
cancel(true);
} catch (ExecutionException e) {
Expand Down

0 comments on commit 521a1e6

Please sign in to comment.