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: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
hjk
2014-11-25 09:48:44 +01:00
parent 50c5df25bb
commit 3027bcc952

View File

@@ -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;
}