diff options
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; } |