|
@@ -96,6 +96,7 @@ void SshClient::ping()
|
|
|
void SshClient::pong()
|
|
|
{
|
|
|
killTimer(myPingTimerID);
|
|
|
+ myPingTimerID = -1;
|
|
|
myPongTimerID = startTimer(30000);
|
|
|
}
|
|
|
|
|
@@ -136,6 +137,7 @@ void SshClient::parse(const QDateTime &time, const QString &command, const QStri
|
|
|
ping();
|
|
|
myConnectedFlag = true;
|
|
|
killTimer(myConnectionTimerID);
|
|
|
+ myConnectionTimerID = -1;
|
|
|
emit connected();
|
|
|
return;
|
|
|
}
|
|
@@ -292,6 +294,7 @@ void SshClient::disconnectFromHost()
|
|
|
killTimer(myConnectionTimerID);
|
|
|
killTimer(myPingTimerID);
|
|
|
killTimer(myPongTimerID);
|
|
|
+ myConnectionTimerID = myPingTimerID = myPongTimerID = -1;
|
|
|
|
|
|
myProcess->terminate();
|
|
|
myProcess->waitForFinished();
|
|
@@ -321,6 +324,7 @@ void SshClient::timerEvent(QTimerEvent *e)
|
|
|
if(e->timerId() == myPongTimerID)
|
|
|
{
|
|
|
killTimer(myPongTimerID);
|
|
|
+ myPongTimerID = -1;
|
|
|
ping();
|
|
|
return;
|
|
|
}
|