local service discovert resend fix
This commit is contained in:
parent
10d20f8f4e
commit
f6f0402aa2
|
@ -58,7 +58,7 @@ namespace libtorrent
|
|||
lsd::lsd(io_service& ios, address const& listen_interface
|
||||
, peer_callback_t const& cb)
|
||||
: m_callback(cb)
|
||||
, m_retry_count(0)
|
||||
, m_retry_count(1)
|
||||
, m_socket(ios, udp::endpoint(address_v4::from_string("239.192.152.143"), 6771)
|
||||
, bind(&lsd::on_announce, self(), _1, _2, _3))
|
||||
, m_broadcast_timer(ios)
|
||||
|
@ -83,7 +83,7 @@ void lsd::announce(sha1_hash const& ih, int listen_port)
|
|||
"\r\n\r\n";
|
||||
std::string const& msg = btsearch.str();
|
||||
|
||||
m_retry_count = 0;
|
||||
m_retry_count = 1;
|
||||
asio::error_code ec;
|
||||
m_socket.send(msg.c_str(), int(msg.size()), ec);
|
||||
if (ec)
|
||||
|
|
Loading…
Reference in New Issue