1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Protocol shutdown/restart from limits is respecting the loops

This commit is contained in:
Maria Matejka
2023-02-06 15:06:12 +01:00
parent a2fd889a3b
commit 9508cd85ce
3 changed files with 51 additions and 21 deletions

View File

@@ -99,12 +99,14 @@ tm_set_max(timer *t, btime when)
}
static inline void
tm_start_max(timer *t, btime after)
tm_start_max_in(timer *t, btime after, struct birdloop *loop)
{
btime rem = tm_remains(t);
tm_start(t, MAX_(rem, after));
tm_start_in(t, MAX_(rem, after), loop);
}
#define tm_start_max(t, after) tm_start_max_in(t, after, &main_birdloop)
/* In sysdep code */
void times_update(void);