git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@360
be28352e-c001-0410-b1a7-
c7978e42abec
if (closeChannel && rafile.getChannel().isOpen()) {
rafile.close();
rafile=null;
if (closeChannel && rafile.getChannel().isOpen()) {
rafile.close();
rafile=null;
+ } else {
+ // just release the lock without doing anything to the channe;l
+ if (lock!=null && lock.isValid())
+ lock.release();
- if (lock!=null && lock.isValid())
- lock.release();
-
}
} catch (IOException e) {
log.warn("Whilst releasing lock",e);
}
} catch (IOException e) {
log.warn("Whilst releasing lock",e);