DHT fix where the node_id would get set after it was started and be inconsitent with rpc_manager and routing_table

This commit is contained in:
Arvid Norberg
2008-11-11 08:33:34 +00:00
parent dd26371c0a
commit 473f75e98a
5 changed files with 18 additions and 14 deletions

View File

@@ -2206,7 +2206,7 @@ namespace aux {
, m_dht_settings.service_port
, m_dht_settings.service_port);
}
m_dht = new dht::dht_tracker(*this, m_dht_socket, m_dht_settings);
m_dht = new dht::dht_tracker(*this, m_dht_socket, m_dht_settings, &startup_state);
if (!m_dht_socket.is_open() || m_dht_socket.local_port() != m_dht_settings.service_port)
{
m_dht_socket.bind(m_dht_settings.service_port);