protected boolean alignAddedStructures = false;
- protected boolean _started = false;
+ protected volatile boolean _started = false;
- protected boolean addingStructures = false;
+ protected volatile boolean addingStructures = false;
protected Thread worker = null;
* used to determine if the final sequence/structure mapping has been
* determined
*/
- protected boolean seqColoursApplied = false;
+ protected volatile boolean seqColoursApplied = false;
/**
* Default constructor
}
if (getBinding() == null)
{
+ if (_aps == null || _aps.size() == 0)
+ {
+ // viewer has been closed, but we did at some point run.
+ return true;
+ }
return false;
}
String[] pdbids = getBinding().getStructureFiles();