Browse Source

Merge "Fix InterruptTimer leak in BasePackConnection"

stable-4.3
Shawn Pearce 9 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
a3e9876d8f
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java

2
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java

@ -143,7 +143,9 @@ abstract class BasePackConnection extends BaseConnection {
final int timeout = transport.getTimeout();
if (timeout > 0) {
final Thread caller = Thread.currentThread();
if (myTimer == null) {
myTimer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
}
timeoutIn = new TimeoutInputStream(myIn, myTimer);
timeoutOut = new TimeoutOutputStream(myOut, myTimer);
timeoutIn.setTimeout(timeout * 1000);

Loading…
Cancel
Save