Restore old behaviour

This commit is contained in:
Adrien Gallouët
2017-01-20 09:52:28 +00:00
parent 8dc7a2d4b3
commit f67eae0a7f

5
mud.c
View File

@@ -1240,10 +1240,11 @@ mud_send(struct mud *mud, const void *data, size_t size, int tc)
limit = path->rtt / 2; limit = path->rtt / 2;
} }
if (mud_timeout(now, path->recv_time, mud->send_timeout + MUD_ONE_SEC) && if (mud_timeout(now, path->recv_time, mud->send_timeout + MUD_ONE_SEC)) {
mud_timeout(now, path->send_time, mud->send_timeout)) { if (mud_timeout(now, path->send_time, mud->send_timeout)) {
mud_send_path(mud, path, now, packet, packet_size, tc); mud_send_path(mud, path, now, packet, packet_size, tc);
path->limit = limit; path->limit = limit;
}
continue; continue;
} }