158159160161162163164165166167168
if(lockOpenCount > 0) { try { newLock = successor.lockOpen(); } catch (IOException e) { successor.close(); successor.free(); throw e; } } if(lockOpenCount > 0) underlyingLock.unlock();