Assert if inserting an invalid timer.

This commit is contained in:
Jan Vidar Krey 2010-03-15 22:59:16 +01:00
parent 862c6a1baf
commit 236daeae53
1 changed files with 1 additions and 0 deletions

View File

@ -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;