void Client::on(Failed, const string& aLine) noexcept { clearUsers(); if(stateNormal()) FavoriteManager::getInstance()->removeUserCommand(hubUrl); //Better ways to transfer the text in here?... string aError = aLine; if (secure && SETTING(ALLOW_UNTRUSTED_HUBS) && sock && !sock->isKeyprintMatch()) { aError += ", type /allow to proceed with untrusted connection"; iskeypError = true; } setConnectState(STATE_DISCONNECTED); statusMessage(aError, LogMessage::SEV_WARNING); //Error? sock->removeListener(this); fire(ClientListener::Failed(), getHubUrl(), aError); }
bool lex_GetNextToken(void) { switch (g_currentBuffer->state) { case LEX_STATE_NORMAL: { return stateNormal(); } case LEX_STATE_MACRO_ARGUMENT0: { g_currentBuffer->state = LEX_STATE_MACRO_ARGUMENT; if (stateMacroArgument0()) return true; // fall through } case LEX_STATE_MACRO_ARGUMENT: { return stateMacroArguments(); } } internalerror("Abnormal error encountered"); return 0; }