diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-06-19 17:48:15 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-06-19 17:48:54 (GMT) | 
| commit | e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6 (patch) | |
| tree | 25b24a5c6da8dba2f96fcad1cc6af5c47eaf2c87 | |
| parent | 86844bd1818c389d471977303121b03fe15e992a (diff) | |
| download | swift-e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6.zip swift-e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6.tar.bz2 | |
Small tweak to previous patch.
| -rw-r--r-- | Swiften/Session/Session.cpp | 6 | 
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(); | 
 Swift
 Swift