summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-28 08:58:05 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-29 16:53:30 (GMT)
commit92d939a27e50756f83b569d9d7db0b7a45aaa202 (patch)
tree4ebdbab16fbb1e07c46cb99b6ccc51e47ec01cbe
parent89ecd9601ff3717c5b0e8e603d56f5bd656743ed (diff)
downloadswift-contrib-92d939a27e50756f83b569d9d7db0b7a45aaa202.zip
swift-contrib-92d939a27e50756f83b569d9d7db0b7a45aaa202.tar.bz2
Added debug message to double finishSession.
-rw-r--r--Swiften/Client/ClientSession.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp
index 70f0398..6cb9c39 100644
--- a/Swiften/Client/ClientSession.cpp
+++ b/Swiften/Client/ClientSession.cpp
@@ -42,6 +42,7 @@
#include <Swiften/Session/SessionStream.h>
#include <Swiften/TLS/CertificateTrustChecker.h>
#include <Swiften/TLS/ServerIdentityVerifier.h>
+#include <Swiften/Base/Log.h>
#ifdef SWIFTEN_PLATFORM_WIN32
#include <Swiften/Base/WindowsRegistry.h>
@@ -440,6 +441,9 @@ void ClientSession::finishSession(boost::shared_ptr<Swift::Error> error) {
if (!error_) {
error_ = error;
}
+ else {
+ LOG(warning) << "Session finished twice";
+ }
assert(stream->isOpen());
if (stanzaAckResponder_) {
stanzaAckResponder_->handleAckRequestReceived();