From ec4ef38882bce0469ce7c65cd70ceb85421cfbd2 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 12 Feb 2012 17:05:47 +0000 Subject: [PATCH] (JAL-1016) noted position where race condition occurs --- src/jalview/ext/jmol/JalviewJmolBinding.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 4a1efe6..a625fd7 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -357,7 +357,7 @@ public abstract class JalviewJmolBinding implements StructureListener, for (int pdbfnum = 0; pdbfnum < files.length; pdbfnum++) { StructureMapping[] mapping = ssm.getMapping(files[pdbfnum]); - + // RACE CONDITION - getMapping only returns Jmol loaded filenames once Jmol callback has completed. if (mapping == null || mapping.length < 1) continue; -- 1.7.10.2