소스 검색

Merge "Fix InterruptTimer leak in BasePackConnection"

tags/v4.2.0.201601211800-r
Shawn Pearce 8 년 전
부모
커밋
a3e9876d8f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java

+ 3
- 1
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();
myTimer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
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…
취소
저장