summaryrefslogtreecommitdiff
path: root/src/libs/ssh/sshremoteprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/ssh/sshremoteprocess.cpp')
-rw-r--r--src/libs/ssh/sshremoteprocess.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libs/ssh/sshremoteprocess.cpp b/src/libs/ssh/sshremoteprocess.cpp
index 6698dfce8b..bd8bd6dc9f 100644
--- a/src/libs/ssh/sshremoteprocess.cpp
+++ b/src/libs/ssh/sshremoteprocess.cpp
@@ -85,9 +85,7 @@ SshRemoteProcess::SshRemoteProcess(quint32 channelId, Internal::SshSendFacility
SshRemoteProcess::~SshRemoteProcess()
{
- Q_ASSERT(d->channelState() == Internal::SshRemoteProcessPrivate::Inactive
- || d->channelState() == Internal::SshRemoteProcessPrivate::CloseRequested
- || d->channelState() == Internal::SshRemoteProcessPrivate::Closed);
+ close();
delete d;
}