diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index 7feb50688..f25feee8f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java @@ -1650,7 +1650,7 @@ boolean lock() throws IOException { channel = f.getChannel(); lock = channel.tryLock(); if (lock == null || !lock.isValid()) { - failedToLock(); + gcAlreadyRunning(); return false; } channel.write(ByteBuffer