From 0ff71c1dbe7c5a0c3a019fed9598fee224a3776f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Mar 2009 12:28:59 +0100 Subject: [PATCH] - Initialize m_idle... --- lib/anidbudpclient/anidbudpclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/anidbudpclient/anidbudpclient.cpp b/lib/anidbudpclient/anidbudpclient.cpp index 3ab0057..94be9ca 100644 --- a/lib/anidbudpclient/anidbudpclient.cpp +++ b/lib/anidbudpclient/anidbudpclient.cpp @@ -18,6 +18,7 @@ qDebug() << "Api instance init!"; m_error = NoError; m_errorString; m_idlePolicy = DoNothingIdlePolicy; + m_idle = true; disconnecting = false; authCommand = 0; @@ -455,6 +456,7 @@ qDebug() << "Leaving idle state"; idleTimer->stop(); + // Do not wait for the timer floodInterval seconds for the first command. sendNextCommand(); commandTimer->start(); } @@ -530,7 +532,6 @@ void AniDBUdpClient::changeState(State newState) leaveIdleState(); break; case ConnectedState: - // Do not wait for the timer floodInterval seconds for the first command. emit connected(); break; default: -- 2.52.0