Epoll fixes.

This commit is contained in:
Jan Vidar Krey
2010-01-18 19:34:18 +01:00
parent 314707f499
commit 7dfa3162cb
3 changed files with 34 additions and 22 deletions

View File

@@ -100,7 +100,8 @@ void timeout_queue_remove(struct timeout_queue* t, struct timeout_evt* evt)
if (first == evt)
{
first->next->prev = first->prev;
if (first->next)
first->next->prev = first->prev;
t->events[pos] = first->next;
}
else