From 236daeae533f5bbac6e378fc7e289241db84d301 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 15 Mar 2010 22:59:16 +0100 Subject: [PATCH] Assert if inserting an invalid timer. --- src/network/timeout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/timeout.c b/src/network/timeout.c index 71c62bf..0c32cff 100644 --- a/src/network/timeout.c +++ b/src/network/timeout.c @@ -94,6 +94,7 @@ void timeout_queue_insert(struct timeout_queue* t, struct timeout_evt* evt, size if (first) { + uhub_assert(first->timestamp == evt->timestamp); first->prev->next = evt; evt->prev = first->prev; first->prev = evt;