mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
Merge pull request #148 from bluekeyes/bugfix/await-timeout
Use long for Channel#await timeout
This commit is contained in:
@@ -254,7 +254,7 @@ public abstract class AbstractChannel
|
|||||||
closeEvent.await();
|
closeEvent.await();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void join(int timeout, TimeUnit unit)
|
public void join(long timeout, TimeUnit unit)
|
||||||
throws ConnectionException {
|
throws ConnectionException {
|
||||||
closeEvent.await(timeout, unit);
|
closeEvent.await(timeout, unit);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ public interface Channel
|
|||||||
void join()
|
void join()
|
||||||
throws ConnectionException;
|
throws ConnectionException;
|
||||||
|
|
||||||
void join(int timeout, TimeUnit unit)
|
void join(long timeout, TimeUnit unit)
|
||||||
throws ConnectionException;
|
throws ConnectionException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user