diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-09 21:45:53 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-09 21:45:53 (GMT) |
commit | 53e476d1c202119ddc87102208103675e47f9e43 (patch) | |
tree | 8d882982020fe515d8abc941c9c9ee2112e8cb1b /Swiften/Client/CoreClient.cpp | |
parent | 9bcba37ce570e0ca839cf3489fd9e34b3b5d44c8 (diff) | |
download | swift-contrib-53e476d1c202119ddc87102208103675e47f9e43.zip swift-contrib-53e476d1c202119ddc87102208103675e47f9e43.tar.bz2 |
Handle stream errors in client session.
Diffstat (limited to 'Swiften/Client/CoreClient.cpp')
-rw-r--r-- | Swiften/Client/CoreClient.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp index c4e5225..ed9302d 100644 --- a/Swiften/Client/CoreClient.cpp +++ b/Swiften/Client/CoreClient.cpp @@ -152,6 +152,9 @@ void CoreClient::handleSessionFinished(boost::shared_ptr<Error> error) { case ClientSession::Error::TLSClientCertificateError: clientError = ClientError(ClientError::ClientCertificateError); break; + case ClientSession::Error::StreamError: + clientError = ClientError(ClientError::StreamError); + break; } } else if (boost::shared_ptr<SessionStream::Error> actualError = boost::dynamic_pointer_cast<SessionStream::Error>(error)) { |