mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
add Channel.join()
This commit is contained in:
@@ -83,7 +83,7 @@ public abstract class AbstractChannel
|
||||
/** Channel open event */
|
||||
protected final Event<ConnectionException> open;
|
||||
/** Channel close event */
|
||||
private final Event<ConnectionException> close;
|
||||
protected final Event<ConnectionException> close;
|
||||
|
||||
/* Access to these fields should be synchronized using this object */
|
||||
private boolean eofSent;
|
||||
@@ -267,6 +267,11 @@ public abstract class AbstractChannel
|
||||
}
|
||||
}
|
||||
|
||||
public void join()
|
||||
throws ConnectionException {
|
||||
close.await();
|
||||
}
|
||||
|
||||
protected synchronized void sendClose()
|
||||
throws TransportException {
|
||||
try {
|
||||
|
||||
@@ -135,4 +135,7 @@ public interface Channel
|
||||
*/
|
||||
void setAutoExpand(boolean autoExpand);
|
||||
|
||||
void join()
|
||||
throws ConnectionException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user