mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
fix dht asserts
This commit is contained in:
parent
994fbd571d
commit
883ce6da4a
1 changed files with 6 additions and 3 deletions
|
@ -139,9 +139,12 @@ public:
|
||||||
void timeout() {}
|
void timeout() {}
|
||||||
void reply(msg const& r)
|
void reply(msg const& r)
|
||||||
{
|
{
|
||||||
m_rpc.invoke(messages::announce_peer, r.addr
|
observer_ptr o(new (m_rpc.allocator().malloc()) announce_observer(
|
||||||
, observer_ptr(new (m_rpc.allocator().malloc()) announce_observer(
|
m_rpc.allocator(), m_info_hash, m_listen_port, r.write_token));
|
||||||
m_rpc.allocator(), m_info_hash, m_listen_port, r.write_token)));
|
#ifndef NDEBUG
|
||||||
|
o->m_in_constructor = false;
|
||||||
|
#endif
|
||||||
|
m_rpc.invoke(messages::announce_peer, r.addr, o);
|
||||||
m_fun(r.peers, m_info_hash);
|
m_fun(r.peers, m_info_hash);
|
||||||
}
|
}
|
||||||
void abort() {}
|
void abort() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue