diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java index 3ee1a2d6f..ae760e3b8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java @@ -155,11 +155,7 @@ public class StreamCopyThread extends Thread { break; synchronized (writeLock) { - if (isInterrupted()) { - continue; - } - - boolean writeInterrupted = false; + boolean writeInterrupted = Thread.interrupted(); for (;;) { try { dst.write(buf, 0, n);