summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-27 21:50:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-27 21:50:26 (GMT)
commit08d137d71e23d8237e788750bd32ad5901058031 (patch)
tree4477861d52239c39fbb4c4ba99afa224a2f40e68 /Swiften/Client
parent1bebb9b3b5d19fd5bfcc0621658a79283e2090db (diff)
downloadswift-08d137d71e23d8237e788750bd32ad5901058031.zip
swift-08d137d71e23d8237e788750bd32ad5901058031.tar.bz2
Fixed crash on disconnect.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/CoreClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index 46b4cbb..0a684b1 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -93,7 +93,7 @@ void CoreClient::disconnect() {
// FIXME: We should be able to do without this boolean. We just have to make sure we can tell the difference between
// connector finishing without a connection due to an error or because of a disconnect.
disconnectRequested_ = true;
- if (!session_->isFinished()) {
+ if (session_ && !session_->isFinished()) {
session_->finish();
}
else if (connector_) {