#endif
if (socket->state() == QAbstractSocket::BoundState)
socket->disconnectFromHost();
+ m_salt.clear();
+ usingEncryption = false;
}
void Client::enterConnectingState()
// Check if it is a 6xx error.
{
- QRegExp rx("(?:50[34]|555|6[0-9]{2}) ");
+ QRegExp rx("(?:50[34]|555|598|6[0-9]{2}) ");
if (rx.exactMatch(tmp.mid(0, 4)))
{
int replyCode = tmp.mid(0, 3).toInt();
m_errorString = tr("Server busy. Try again later. Wait at least 30 minutes.");
emit connectionError();
goto endLoop;
+ case UNKNOWN_COMMAND:
+ if (usingEncryption)
+ {
+ m_error = EncryptionError;
+ m_errorString = tr("Server did not recognize encrypted command. Make sure the API Key is correct.");
+ emit connectionError();
+ goto endLoop;
+ }
+ break;
default:
if (replyCode > 601 && replyCode < 700)
{