forked from qt-creator/qt-creator
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:
@@ -85,9 +85,7 @@ SshRemoteProcess::SshRemoteProcess(quint32 channelId, Internal::SshSendFacility
|
|||||||
|
|
||||||
SshRemoteProcess::~SshRemoteProcess()
|
SshRemoteProcess::~SshRemoteProcess()
|
||||||
{
|
{
|
||||||
Q_ASSERT(d->channelState() == Internal::SshRemoteProcessPrivate::Inactive
|
close();
|
||||||
|| d->channelState() == Internal::SshRemoteProcessPrivate::CloseRequested
|
|
||||||
|| d->channelState() == Internal::SshRemoteProcessPrivate::Closed);
|
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user