mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 08:55:40 +03:00
Set relative time t to zero when it expired
Not seting that relative time to zero will only (in the pop process) increase the next node relative time with this one. e.g. if node1->t = 1000 (1 sec), and node2->t = 1000 ( + 1 sec), after 1 sec, we pop node1 and node2 become first with t = 2000 (as pop will do node2->t += node1->t. But in reality, 1 second already elapsed, so node2->t should be 1000 instead.
This commit is contained in:
1 parent
4e7f909037
commit
d26f9479fc
1 file changed
+1