summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-19 17:48:15 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-19 17:48:54 (GMT)
commite61e188ade3a42f7fd5ef4d6e5673d55e99a51f6 (patch)
tree25b24a5c6da8dba2f96fcad1cc6af5c47eaf2c87
parent86844bd1818c389d471977303121b03fe15e992a (diff)
downloadswift-contrib-e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6.zip
swift-contrib-e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6.tar.bz2
Small tweak to previous patch.
-rw-r--r--Swiften/Session/Session.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/Session/Session.cpp b/Swiften/Session/Session.cpp
index cdb83d4..0c38f07 100644
--- a/Swiften/Session/Session.cpp
+++ b/Swiften/Session/Session.cpp
@@ -38,8 +38,9 @@ void Session::startSession() {
}
void Session::finishSession() {
- if (finishing)
+ if (finishing) {
return;
+ }
finishing = true;
if (xmppLayer) {
xmppLayer->writeFooter();
@@ -50,8 +51,9 @@ void Session::finishSession() {
}
void Session::finishSession(const SessionError& error) {
- if (finishing)
+ if (finishing) {
return;
+ }
finishing = true;
if (xmppLayer) {
xmppLayer->writeFooter();