From: APTX Date: Thu, 26 Mar 2009 11:28:59 +0000 (+0100) Subject: - Initialize m_idle... X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=6b89169f158e708597d56997df08b19d03ee4a5a;p=anidbudpclient.git - Initialize m_idle... --- 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: