git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c40be8
)
JAL-4217 JAL-629 built in 25s time out waiting for structure viewer to load data...
author
James Procter
<j.procter@dundee.ac.uk>
Fri, 7 Jul 2023 16:53:28 +0000
(17:53 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Fri, 7 Jul 2023 16:53:28 +0000
(17:53 +0100)
src/jalview/bin/Commands.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/Commands.java
b/src/jalview/bin/Commands.java
index
d83afed
..
d7d1ea3
100644
(file)
--- a/
src/jalview/bin/Commands.java
+++ b/
src/jalview/bin/Commands.java
@@
-576,15
+576,21
@@
public class Commands
}
try
{
- while (sv.isBusy())
+ long tries=1000;
+ while (sv.isBusy() && tries>0)
{
Thread.sleep(25);
if (sv.isBusy())
{
+ tries--;
Console.debug(
"Waiting for viewer for " + structureFilepath);
}
}
+ if (tries==0 && sv.isBusy())
+ {
+ Console.warn("Gave up waiting for structure viewer to load. Something may have gone wrong.");
+ }
} catch (Exception x)
{
Console.warn("Exception whilst waiting for structure viewer "+structureFilepath,x);