node: remove expired flag when a node reaches us

This commit is contained in:
Simon Désaulniers authored and Adrien Béraud committed 2017-01-09 14:40:42 -05:00
1 parent 5a7c8753e1
commit af5e0c8982
1 file changed
+1 -1
+1 -1
View File
@@ -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)