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_3_0~12^2~9 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1ce72d485ca335eff45f1d7904b8f547548c0558;hp=261d2ca1b0eef309cd9d178e023c6bfecbd62017;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(