summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Client/ClientSession.cpp')
-rw-r--r--Swiften/Client/ClientSession.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp
index f7fc073..a95c058 100644
--- a/Swiften/Client/ClientSession.cpp
+++ b/Swiften/Client/ClientSession.cpp
@@ -216,6 +216,7 @@ void ClientSession::finishSession(Error::Type error) {
}
void ClientSession::finishSession(boost::shared_ptr<Swift::Error> error) {
+ state = Finished;
stream->setWhitespacePingEnabled(false);
onFinished(error);
}