From 1ce72d485ca335eff45f1d7904b8f547548c0558 Mon Sep 17 00:00:00 2001 From: James Procter Date: Thu, 6 Jul 2023 16:52:29 +0100 Subject: [PATCH] JAL-4217 interruptedExceptions should also break any wait loops --- src/jalview/bin/Commands.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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( -- 1.7.10.2