Commit 3027bcc9 authored by hjk's avatar hjk
Browse files

Ssh: Remove wrong Q_ASSERT in SshRemoteProcess destructor



This can be triggered rather quickly by clicking "Run" for a short-
lived application on a QNX device. The state in this situation is
QSsh::Internal::AbstractSshChannel::SessionRequested.

Change-Id: I4447b85a4e8d6ba63e30f3783d29bb0c816e0dff
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 50c5df25
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment