From: unknown 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=0ff71c1dbe7c5a0c3a019fed9598fee224a3776f;p=aniplayer-old.git - Initialize m_idle... --- 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: