Browse Source

Merge branch 'stable-4.11' into stable-5.0

* stable-4.11:
  ObjectDownloadListener#onWritePossible: Add comment on return statement

Change-Id: Icacfa8dcd1ced32715fb772c336574318f28ddd1
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v5.1.2.201810061102-r
David Pursehouse 5 years ago
parent
commit
7893fcb0b4

+ 4
- 0
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java View File

@@ -136,6 +136,10 @@ public class ObjectDownloadListener implements WriteListener {
} finally {
context.complete();
}
// This is need to avoid endless loop in recent Jetty versions.
// That's because out.isReady() is returning true for already
// closed streams and because out.close() doesn't throw any
// exception any more when trying to close already closed stream.
return;
}
}

Loading…
Cancel
Save