don't fail socks5 on 'socket already open'
This commit is contained in:
parent
4e1af65fe0
commit
2a6b019431
|
@ -80,6 +80,8 @@ namespace libtorrent
|
|||
}
|
||||
|
||||
error_code ec;
|
||||
if (!m_sock.is_open())
|
||||
{
|
||||
m_sock.open(i->endpoint().protocol(), ec);
|
||||
if (ec)
|
||||
{
|
||||
|
@ -87,6 +89,7 @@ namespace libtorrent
|
|||
close(ec);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// TOOD: we could bind the socket here, since we know what the
|
||||
// target endpoint is of the proxy
|
||||
|
|
Loading…
Reference in New Issue