forked from qt-creator/qt-creator
Ssh: Remove indirection in AbstractSshChannel::m_timeoutTimer
... and connect it using Qt5-style connects. Change-Id: Ic7f36949b38d4773f5ac0f04853abf93bebcf467 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -304,7 +304,7 @@ void SshRemoteProcessPrivate::handleOpenSuccessInternal()
|
||||
else
|
||||
m_sendFacility.sendExecPacket(remoteChannel(), m_command);
|
||||
setProcState(ExecRequested);
|
||||
m_timeoutTimer->start(ReplyTimeout);
|
||||
m_timeoutTimer.start(ReplyTimeout);
|
||||
}
|
||||
|
||||
void SshRemoteProcessPrivate::handleOpenFailureInternal(const QString &reason)
|
||||
@@ -319,7 +319,7 @@ void SshRemoteProcessPrivate::handleChannelSuccess()
|
||||
throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR,
|
||||
"Unexpected SSH_MSG_CHANNEL_SUCCESS message.");
|
||||
}
|
||||
m_timeoutTimer->stop();
|
||||
m_timeoutTimer.stop();
|
||||
setProcState(Running);
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ void SshRemoteProcessPrivate::handleChannelFailure()
|
||||
throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR,
|
||||
"Unexpected SSH_MSG_CHANNEL_FAILURE message.");
|
||||
}
|
||||
m_timeoutTimer->stop();
|
||||
m_timeoutTimer.stop();
|
||||
setProcState(StartFailed);
|
||||
closeChannel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user