mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
network engine: check on_expired
This commit is contained in:
1 parent
442e5501d8
commit
0bfd3cd9fc
1 file changed
+2
-1
@@ -294,7 +294,8 @@ NetworkEngine::requestStep(Sp<Request> sreq)
|
||||
requests.erase(req.tid);
|
||||
return;
|
||||
} else if (req.attempt_count == 1) {
|
||||
req.on_expired(req, false);
|
||||
if (req.on_expired)
|
||||
req.on_expired(req, false);
|
||||
}
|
||||
|
||||
auto err = send(node.getAddr(), (char*)req.msg.data(), req.msg.size(), node.getReplyTime() < now - UDP_REPLY_TIME);
|
||||
|
||||
Reference in new issue
Block a user