summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalSession.cpp')
-rw-r--r--Swiften/LinkLocal/LinkLocalSession.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Swiften/LinkLocal/LinkLocalSession.cpp b/Swiften/LinkLocal/LinkLocalSession.cpp
index a308686..0f106ae 100644
--- a/Swiften/LinkLocal/LinkLocalSession.cpp
+++ b/Swiften/LinkLocal/LinkLocalSession.cpp
@@ -47,8 +47,13 @@ void LinkLocalSession::sendStanza(boost::shared_ptr<Stanza> stanza) {
xmppLayer->writeElement(stanza);
}
-void LinkLocalSession::handleDisconnected(const boost::optional<Connection::Error>&) {
- onSessionFinished();
+void LinkLocalSession::handleDisconnected(const boost::optional<Connection::Error>& connectionError) {
+ if (connectionError) {
+ onSessionFinished(boost::optional<Error>(ConnectionError));
+ }
+ else {
+ onSessionFinished(boost::optional<Error>());
+ }
}
void LinkLocalSession::setInitialized() {