diff options
Diffstat (limited to 'Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp')
| -rw-r--r-- | Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp b/Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp index 25a12ea..3221790 100644 --- a/Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp +++ b/Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.cpp | |||
| @@ -111,10 +111,11 @@ boost::shared_ptr<SOCKS5BytestreamClientSession> SOCKS5BytestreamProxiesManager: | |||
| 111 | SOCKS5BytestreamClientSession::ref connection = boost::make_shared<SOCKS5BytestreamClientSession>(connectionFactory_->createConnection(), addressPort, destAddr, timerFactory_); | 111 | SOCKS5BytestreamClientSession::ref connection = boost::make_shared<SOCKS5BytestreamClientSession>(connectionFactory_->createConnection(), addressPort, destAddr, timerFactory_); |
| 112 | return connection; | 112 | return connection; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | void SOCKS5BytestreamProxiesManager::handleProxiesFound(std::vector<S5BProxyRequest::ref> proxyHosts) { | 115 | void SOCKS5BytestreamProxiesManager::handleProxiesFound(std::vector<S5BProxyRequest::ref> proxyHosts) { |
| 116 | proxyFinder_->onProxiesFound.disconnect(boost::bind(&SOCKS5BytestreamProxiesManager::handleProxiesFound, this, _1)); | ||
| 116 | foreach(S5BProxyRequest::ref proxy, proxyHosts) { | 117 | foreach(S5BProxyRequest::ref proxy, proxyHosts) { |
| 117 | if (proxy) { | 118 | if (proxy) { |
| 118 | if (HostAddress(proxy->getStreamHost().get().host).isValid()) { | 119 | if (HostAddress(proxy->getStreamHost().get().host).isValid()) { |
| 119 | addS5BProxy(proxy); | 120 | addS5BProxy(proxy); |
| 120 | onDiscoveredProxiesChanged(); | 121 | onDiscoveredProxiesChanged(); |
Swift