aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java6
1 files changed, 1 insertions, 5 deletions
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 3ee1a2d6fa..ae760e3b8e 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);