import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
+import java.nio.channels.ClosedChannelException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
* @author Olivier Lamy
* @since 2.0.0
*/
-@Service( "fileLockManager#default" )
+@Service("fileLockManager#default")
public class DefaultFileLockManager
implements FileLockManager
{
lockFiles.remove( lock.getFile() );
lock.close();
}
+ catch ( ClosedChannelException e )
+ {
+ // skip this one
+ log.debug( "ignore ClosedChannelException: {}", e.getMessage() );
+ }
catch ( IOException e )
{
throw new FileLockException( e.getMessage(), e );