Fix interrupted write in StreamCopyThread
commitf999b4aa63289cc5fb2941e9fa5f47e742e23fac
authorShawn O. Pearce <spearce@spearce.org>
Thu, 13 May 2010 16:56:15 +0000 (13 09:56 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 13 May 2010 16:58:21 +0000 (13 09:58 -0700)
tree48963084136b8215fa897d3262917a72da47eff3
parent3f143b8d6b5c20098e041e22be42216e668a4a0b
Fix interrupted write in StreamCopyThread

If a flush() gets delivered at the same time that we are blocking
while writing to an interruptable stream, the copy thread will
abort assuming its a stream error.  Instead ignore the interrupt,
and retry the write.

Change-Id: Icbf62d1b8abe0fabbb532dbee088020eecf4c6c2
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java