mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
Use long for Channel#await duration
This matches the underlying method called by AbstractChannel and is the standard for timeouts with a TimeUnit.
This commit is contained in:
@@ -254,7 +254,7 @@ public abstract class AbstractChannel
|
||||
closeEvent.await();
|
||||
}
|
||||
|
||||
public void join(int timeout, TimeUnit unit)
|
||||
public void join(long timeout, TimeUnit unit)
|
||||
throws ConnectionException {
|
||||
closeEvent.await(timeout, unit);
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ public interface Channel
|
||||
void join()
|
||||
throws ConnectionException;
|
||||
|
||||
void join(int timeout, TimeUnit unit)
|
||||
void join(long timeout, TimeUnit unit)
|
||||
throws ConnectionException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user