From d8537937c75e691dff2a5e5d5d7cc675d8dcab5a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 25 Nov 2007 08:57:58 +0000 Subject: [PATCH] try to fix #103 --- src/kademlia/dht_tracker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index f32db06d4..3f47eb070 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -273,6 +273,9 @@ namespace libtorrent { namespace dht udp::endpoint ep(listen_interface, listen_port); m_socket.open(ep.protocol()); m_socket.bind(ep); + m_socket.async_receive_from(asio::buffer(&m_in_buf[m_buffer][0] + , m_in_buf[m_buffer].size()), m_remote_endpoint[m_buffer] + , m_strand.wrap(bind(&dht_tracker::on_receive, self(), _1, _2))); } void dht_tracker::tick(asio::error_code const& e)