summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Session')
-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();