diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-01-22 14:00:01 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-01-22 14:00:01 (GMT) |
commit | df029015f47f284ced01b8d1f11c4d48cc2f2564 (patch) | |
tree | 455d47a7fcb0d9d90bef6a6c63bdc7120eaec286 /Swiften/Session/BasicSessionStream.cpp | |
parent | 940cb5e744564ec15b805a9e5388e1fa5c60d703 (diff) | |
download | swift-df029015f47f284ced01b8d1f11c4d48cc2f2564.zip swift-df029015f47f284ced01b8d1f11c4d48cc2f2564.tar.bz2 |
Close connection properly before quitting.
Diffstat (limited to 'Swiften/Session/BasicSessionStream.cpp')
-rw-r--r-- | Swiften/Session/BasicSessionStream.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/Session/BasicSessionStream.cpp b/Swiften/Session/BasicSessionStream.cpp index 5377e6c..03985bd 100644 --- a/Swiften/Session/BasicSessionStream.cpp +++ b/Swiften/Session/BasicSessionStream.cpp @@ -88,7 +88,11 @@ void BasicSessionStream::writeFooter() { xmppLayer->writeFooter(); } -bool BasicSessionStream::isAvailable() { +void BasicSessionStream::close() { + connection->disconnect(); +} + +bool BasicSessionStream::isOpen() { return available; } |