From 52d79acec676d5799ff628a4129e885d3bf64bc6 Mon Sep 17 00:00:00 2001 From: APTX Date: Wed, 11 Jul 2012 02:38:48 +0200 Subject: [PATCH] Add ServerBusyError Error type --- anidbudpclient_global.h | 1 + client.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/anidbudpclient_global.h b/anidbudpclient_global.h index 9c31ed9..0b73628 100644 --- a/anidbudpclient_global.h +++ b/anidbudpclient_global.h @@ -34,6 +34,7 @@ namespace AniDBUdpClient ClientBannedError, ClientVersionOutdatedError, ServerError, + ServerBusyError, ConnectionTimedOutError, EncryptionError, UnknownError, diff --git a/client.cpp b/client.cpp index 718f385..775c67f 100644 --- a/client.cpp +++ b/client.cpp @@ -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; -- 2.52.0