]> Some of my projects - anidbudpclient.git/commitdiff
Add ServerBusyError Error type
authorAPTX <marek321@gmail.com>
Wed, 11 Jul 2012 00:38:48 +0000 (02:38 +0200)
committerAPTX <marek321@gmail.com>
Wed, 11 Jul 2012 00:38:48 +0000 (02:38 +0200)
anidbudpclient_global.h
client.cpp

index 9c31ed9450ac9125e0dd99da54ee326809eca4a1..0b7362826a532142b7a1c234f261e72e848c5d30 100644 (file)
@@ -34,6 +34,7 @@ namespace AniDBUdpClient
                ClientBannedError,
                ClientVersionOutdatedError,
                ServerError,
+               ServerBusyError,
                ConnectionTimedOutError,
                EncryptionError,
                UnknownError,
index 718f385ae7c5dac59091517b6d4470e105e464a2..775c67fc33644aa1bf205f873ac8e24ac2a3670f 100644 (file)
@@ -635,10 +635,11 @@ qDebug() << QString("Recieved datagram from [%1]:%2\nRaw datagram contents:%3")
                                                goto endLoop;
                                        break;
                                        case SERVER_BUSY:
-                                               m_error = ServerError;
+                                               m_error = ServerBusyError;
                                                m_errorString = tr("Server busy. Try again later. Wait at least 30 minutes.");
                                                emit connectionError();
                                                goto endLoop;
+                                       break;
                                        case UNKNOWN_COMMAND:
                                                if (usingEncryption && firstEncryptedCommand)
                                                {
@@ -788,7 +789,7 @@ qDebug() << "LOGIN FIRST required, authing";
                                goto endLoop;
                        break;
                        case SERVER_BUSY:
-                               m_error = ServerError;
+                               m_error = ServerBusyError;
                                m_errorString = tr("Server busy. Try again later. Wait at least 30 minutes.");
                                emit connectionError();
                                goto endLoop;