mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
node: remove expired flag when a node reaches us
This commit is contained in:
1 parent
5a7c8753e1
commit
af5e0c8982
1 file changed
+1
-1
+1
-1
@@ -83,9 +83,9 @@ void
|
||||
Node::received(time_point now, std::shared_ptr<net::Request> req)
|
||||
{
|
||||
time = now;
|
||||
expired_ = false;
|
||||
if (req) {
|
||||
reply_time = now;
|
||||
expired_ = false;
|
||||
for (auto it = requests_.begin(); it != requests_.end();) {
|
||||
auto r = it->lock();
|
||||
if (not r or r == req)
|
||||
|
||||
Reference in new issue
Block a user