From 92d939a27e50756f83b569d9d7db0b7a45aaa202 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 28 Apr 2012 10:58:05 +0200
Subject: Added debug message to double finishSession.


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();
-- 
cgit v0.10.2-6-g49f6