From 097d52c8f0216feea223605766e37d8786c9b938 2011-07-20 19:32:54 From: HanzZ Date: 2011-07-20 19:32:54 Subject: [PATCH] Don't use Session after finishSession call --- diff --git a/include/Swiften/Server/ServerFromClientSession.cpp b/include/Swiften/Server/ServerFromClientSession.cpp index b1e7d7c9acd7c8a9e1c3a98575e1896704cc4059..d2062575a1048289badddc0ab51d3e0da2ffb9ba 100644 --- a/include/Swiften/Server/ServerFromClientSession.cpp +++ b/include/Swiften/Server/ServerFromClientSession.cpp @@ -75,7 +75,6 @@ void ServerFromClientSession::handlePasswordInvalid(const std::string &user) { userRegistry_->onPasswordInvalid.disconnect(boost::bind(&ServerFromClientSession::handlePasswordInvalid, this, _1)); getXMPPLayer()->writeElement(boost::shared_ptr(new AuthFailure)); finishSession(AuthenticationFailedError); - onPasswordInvalid(); } } diff --git a/include/Swiften/Server/ServerFromClientSession.h b/include/Swiften/Server/ServerFromClientSession.h index f0a62e655a5dd1465e15a84303616421177dfb73..6fbe44ff5bf214d31147ba937adf608e8ae91e66 100644 --- a/include/Swiften/Server/ServerFromClientSession.h +++ b/include/Swiften/Server/ServerFromClientSession.h @@ -42,7 +42,6 @@ namespace Swift { ~ServerFromClientSession(); boost::signal onSessionStarted; - boost::signal onPasswordInvalid; void setAllowSASLEXTERNAL(); const std::string &getUser() { return user_;