forked from qt-creator/qt-creator
SSH: Fix autotest
- Consider the case of connection sharing being disabled. - Adapt to slower environments. Change-Id: I088622034c26ea343eb78161b24c43b3286b0512 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -231,7 +231,7 @@ void SshConnection::disconnectFromHost()
|
||||
case Connecting:
|
||||
case Connected:
|
||||
if (!d->sharingEnabled) {
|
||||
emitDisconnected();
|
||||
QTimer::singleShot(0, this, &SshConnection::emitDisconnected);
|
||||
return;
|
||||
}
|
||||
d->state = Disconnecting;
|
||||
|
||||
Reference in New Issue
Block a user