From 7f9e09760aa36288f1acef7e1193393bc5a86475 Mon Sep 17 00:00:00 2001 From: APTX Date: Fri, 15 Jun 2012 13:42:23 +0200 Subject: [PATCH] Seems KeepAliveIdlePolicy hasn't been used since version 2... and LogoutIdlePolicy hasn't ever been used --- client.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 80c2490..4a6ae7a 100644 --- a/client.cpp +++ b/client.cpp @@ -543,8 +543,14 @@ qDebug() << "Entering IdleTiemout State"; m_salt = ""; usingEncryption = false; break; + case LogoutIdlePolicy: + logout(true); + break; case KeepAliveIdlePolicy: - enqueueControlCommand(uptimeReply); + if (uptimeReply) + uptimeReply->deleteLater(); + uptimeReply = createReply(UptimeCommand()); + sendCommand(uptimeReply); default: break; } -- 2.52.0