From 6b89169f158e708597d56997df08b19d03ee4a5a Mon Sep 17 00:00:00 2001 From: APTX Date: Thu, 26 Mar 2009 12:28:59 +0100 Subject: [PATCH] - Initialize m_idle... --- anidbudpclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anidbudpclient.cpp b/anidbudpclient.cpp index 3ab0057..94be9ca 100644 --- a/anidbudpclient.cpp +++ b/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