summaryrefslogtreecommitdiff
path: root/src/protocol/fqterm_ssh_socket.cpp
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-11-25 19:14:50 +0800
committerIru Cai <mytbk920423@gmail.com>2018-04-29 16:51:12 +0800
commitfd337f1b6e3f3532ceba1b1855e7b72d3fcd1871 (patch)
tree949554894326d70e727bad6258934ded7dd8e300 /src/protocol/fqterm_ssh_socket.cpp
parentf0ed386c8713db9955d9dd007f5a32f8cb4e251d (diff)
downloadfqterm-fd337f1b6e3f3532ceba1b1855e7b72d3fcd1871.tar.xz
Use channelClosed() to handle channel close message
TODO: Now connection will be closed when a channel close, this should be handled according to RFC 4254.
Diffstat (limited to 'src/protocol/fqterm_ssh_socket.cpp')
-rw-r--r--src/protocol/fqterm_ssh_socket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol/fqterm_ssh_socket.cpp b/src/protocol/fqterm_ssh_socket.cpp
index fff03dd..20612bf 100644
--- a/src/protocol/fqterm_ssh_socket.cpp
+++ b/src/protocol/fqterm_ssh_socket.cpp
@@ -157,6 +157,7 @@ void FQTermSSHSocket::init(int ssh_version) {
FQ_VERIFY(connect(ssh_channel_, SIGNAL(channelOK()), this, SLOT(channelOK())));
FQ_VERIFY(connect(ssh_channel_, SIGNAL(channelReadyRead(const char *, int)), this, SLOT(channelReadyRead(const char *, int))));
FQ_VERIFY(connect(ssh_channel_, SIGNAL(channelError(QString)), this, SLOT(handleError(QString))));
+ FQ_VERIFY(connect(ssh_channel_, SIGNAL(channelClosed()), this, SIGNAL(connectionClosed())));
key_exchanger_->initKex(packet_receiver_, packet_sender_);
}