From: James Procter Date: Thu, 6 Jul 2023 15:52:29 +0000 (+0100) Subject: JAL-4217 interruptedExceptions should also break any wait loops X-Git-Tag: Release_2_11_4_0~249 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1ce72d485ca335eff45f1d7904b8f547548c0558;p=jalview.git JAL-4217 interruptedExceptions should also break any wait loops --- diff --git a/src/jalview/bin/Commands.java b/src/jalview/bin/Commands.java index 7f493e0..e77e45d 100644 --- a/src/jalview/bin/Commands.java +++ b/src/jalview/bin/Commands.java @@ -574,15 +574,15 @@ public class Commands Console.error("Failed to import and open structure view."); continue; } - while (sv.isBusy()) + try { { - try { + while (sv.isBusy()) Thread.sleep(25); } - catch (Exception x) - { - - } + } + catch (Exception x) + { + } String structureImageFilename = ArgParser.getValueFromSubValOrArg(