diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-18 21:06:17 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-18 21:48:54 (GMT) |
commit | 5d504472c63b7acaa7df99ff1097024cf463f1bd (patch) | |
tree | 999b651588f38ee09325dcda65b6e6396247de2f /Swiften/LinkLocal/LinkLocalSession.cpp | |
parent | 4457bc810a326de8d7895b3f2ff36ade5f1ae1a0 (diff) | |
download | swift-contrib-5d504472c63b7acaa7df99ff1097024cf463f1bd.zip swift-contrib-5d504472c63b7acaa7df99ff1097024cf463f1bd.tar.bz2 |
Implement outgoing linklocal sessions.
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalSession.cpp')
-rw-r--r-- | Swiften/LinkLocal/LinkLocalSession.cpp | 9 |
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() { |