aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshconnection.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2012-08-17 17:33:06 +0200
committerChristian Kandeler <christian.kandeler@nokia.com>2012-08-20 10:54:14 +0200
commitd6e85d5522bbc0045706c7dd48288d0dcaf4b831 (patch)
tree884ffabfe23d8ac1bf828f5ed328994337723cee /src/libs/ssh/sshconnection.h
parent1e71dccc9e536f49a72e094a00caaffb99984545 (diff)
SSH: Take more care when closing channels.
We can't just pretend a channel is already gone after we request it to close; it's only closed when the server has sent the acknowledgement. Change-Id: Ib6e8b9bf77635995259885af13755f5fc0e825a9 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/libs/ssh/sshconnection.h')
-rw-r--r--src/libs/ssh/sshconnection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/ssh/sshconnection.h b/src/libs/ssh/sshconnection.h
index 1e8d7effa8..66263c3077 100644
--- a/src/libs/ssh/sshconnection.h
+++ b/src/libs/ssh/sshconnection.h
@@ -107,6 +107,8 @@ public:
// -1 if an error occurred, number of channels closed otherwise.
int closeAllChannels();
+ int channelCount() const;
+
signals:
void connected();
void disconnected();