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
No related branches found
No related tags found
No related merge requests found
......@@ -477,10 +477,9 @@ private:
return;
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->on_done = {};
req->clear();
requests.erase(req->tid);
return;
} 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