Skip to content
Snippets Groups Projects
Commit a0a10851 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

expire request when node is expired

parent d062f7bd
Branches
Tags
No related merge requests found
...@@ -477,10 +477,9 @@ private: ...@@ -477,10 +477,9 @@ private:
return; return;
auto now = scheduler.time(); auto now = scheduler.time();
if (req->expired(now)) { if (req->node->isExpired(now) or req->expired(now)) {
req->on_expired(req, true); req->on_expired(req, true);
req->on_expired = {}; req->clear();
req->on_done = {};
requests.erase(req->tid); requests.erase(req->tid);
return; return;
} else if (req->attempt_count == 1) { } else if (req->attempt_count == 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment