local service discovert resend fix

This commit is contained in:
Arvid Norberg 2008-03-26 21:40:58 +00:00
parent 10d20f8f4e
commit f6f0402aa2
1 changed files with 2 additions and 2 deletions

View File

@ -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)