From 097d52c8f0216feea223605766e37d8786c9b938 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Wed, 20 Jul 2011 19:32:54 +0200 Subject: [PATCH] Don't use Session after finishSession call --- include/Swiften/Server/ServerFromClientSession.cpp | 1 - include/Swiften/Server/ServerFromClientSession.h | 1 - 2 files changed, 2 deletions(-) diff --git a/include/Swiften/Server/ServerFromClientSession.cpp b/include/Swiften/Server/ServerFromClientSession.cpp index b1e7d7c9..d2062575 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 f0a62e65..6fbe44ff 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_;