diff options
author | Thilo Cestonaro <thilo@cestona.ro> | 2011-05-04 17:00:08 (GMT) |
---|---|---|
committer | Thilo Cestonaro <thilo@cestona.ro> | 2011-12-13 08:37:16 (GMT) |
commit | 73f9f0ee5dca1485a8f35ff67848be43a7d75978 (patch) | |
tree | f0c35cd979e7c056709ae56cd2bcab8901d530dd /Swiften/Network/SOCKS5ProxiedConnection.cpp | |
parent | 81c09a0f6a3e87b078340d7f35d0dea4c03f3a6d (diff) | |
download | swift-contrib-73f9f0ee5dca1485a8f35ff67848be43a7d75978.zip swift-contrib-73f9f0ee5dca1485a8f35ff67848be43a7d75978.tar.bz2 |
some SOCKS5ProxiedConnection unittestsephraim/SOCKS5Unittests
fixed disconnecting when SOCKS Proxy response with an unsupported auth method
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swiften/Network/SOCKS5ProxiedConnection.cpp')
-rw-r--r-- | Swiften/Network/SOCKS5ProxiedConnection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Network/SOCKS5ProxiedConnection.cpp b/Swiften/Network/SOCKS5ProxiedConnection.cpp index 163e23a..838bcd2 100644 --- a/Swiften/Network/SOCKS5ProxiedConnection.cpp +++ b/Swiften/Network/SOCKS5ProxiedConnection.cpp @@ -126,6 +126,7 @@ void SOCKS5ProxiedConnection::handleDataRead(boost::shared_ptr<SafeByteArray> da connection_->write(socksConnect); break; default: + disconnect(); onConnectFinished(true); break; } |