Always update path->send.time

This commit is contained in:
angt
2016-04-30 12:38:18 +00:00
parent e0c80bef3d
commit a26e2af038

5
mud.c
View File

@@ -230,14 +230,13 @@ ssize_t mud_send_path (struct mud *mud, struct path *path, uint64_t now,
ssize_t ret = sendmsg(mud->fd, &msg, 0);
if (ret == (ssize_t)size) {
if (path->recv.time > path->send.time) {
if ((ret == (ssize_t)size) &&
(path->recv.time > path->send.time)) {
path->last_time = now;
path->last_count = 0;
}
path->send.time = now;
}
return ret;
}