Send all packets to uninitilized path

This commit is contained in:
angt
2016-02-06 12:31:30 +00:00
parent 659d7ad604
commit d43e05559b

5
mud.c
View File

@@ -531,6 +531,11 @@ int mud_push (struct mud *mud)
int32_t dt_min = INT32_MAX;
for (path = mud->path; path; path = path->next) {
if (!path->recv.dt) {
mud_send_path(path, packet->data, packet->size);
continue;
}
int32_t dt = (int32_t)path->recv.dt-(int32_t)(now-path->send.time);
if (dt_min > dt) {