]> Some of my projects - aniplayer-old.git/commitdiff
- Initialize m_idle...
authorunknown <APTX@.(none)>
Thu, 26 Mar 2009 11:28:59 +0000 (12:28 +0100)
committerunknown <APTX@.(none)>
Thu, 26 Mar 2009 11:28:59 +0000 (12:28 +0100)
lib/anidbudpclient/anidbudpclient.cpp

index 3ab0057f07b8155b14d16a8513097df84266b1df..94be9ca8efc26b60e3d8ddcb85100a21ee007c48 100644 (file)
@@ -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: