DEGRADED/DOWN paths are useless server side

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-07-19 13:20:26 +00:00
parent b2ff2b6276
commit a91f8e2971

3
mud.c
View File

@@ -1467,7 +1467,8 @@ mud_update(struct mud *mud, uint64_t now)
if ((path->msg_sent >= MUD_MSG_SENT_MAX) || if ((path->msg_sent >= MUD_MSG_SENT_MAX) ||
(path->recv.time && (path->recv.time &&
mud->last_recv_time > path->recv.time + MUD_ONE_SEC)) { mud->last_recv_time > path->recv.time + MUD_ONE_SEC)) {
mud_reset_path(mud, path); path->state = MUD_EMPTY;
continue;
} }
} }