forked from premiere/premiere-libtorrent
fixed dead-lock when setting DHT proxy
This commit is contained in:
parent
7df806d7f5
commit
b0a72f6809
|
@ -37,6 +37,7 @@ release 0.14.2
|
||||||
* fixed potential issue in udp_socket (affected udp tracker support)
|
* fixed potential issue in udp_socket (affected udp tracker support)
|
||||||
* made name, comment and created by also be subject to utf-8 error
|
* made name, comment and created by also be subject to utf-8 error
|
||||||
correction (filenames already were)
|
correction (filenames already were)
|
||||||
|
* fixed dead-lock when settings DHT proxy
|
||||||
|
|
||||||
release 0.14.1
|
release 0.14.1
|
||||||
|
|
||||||
|
|
|
@ -378,6 +378,7 @@ void udp_socket::on_name_lookup(error_code const& e, tcp::resolver::iterator i)
|
||||||
|
|
||||||
m_proxy_addr.address(i->endpoint().address());
|
m_proxy_addr.address(i->endpoint().address());
|
||||||
m_proxy_addr.port(i->endpoint().port());
|
m_proxy_addr.port(i->endpoint().port());
|
||||||
|
l.unlock(); // on_connect may be called from within this thread
|
||||||
m_cc.enqueue(boost::bind(&udp_socket::on_connect, this, _1)
|
m_cc.enqueue(boost::bind(&udp_socket::on_connect, this, _1)
|
||||||
, boost::bind(&udp_socket::on_timeout, this), seconds(10));
|
, boost::bind(&udp_socket::on_timeout, this), seconds(10));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue