From fd337f1b6e3f3532ceba1b1855e7b72d3fcd1871 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 25 Nov 2016 19:14:50 +0800 Subject: 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. --- src/protocol/fqterm_ssh_socket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocol/fqterm_ssh_socket.cpp') 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_); } -- cgit v1.2.3