Project

General

Profile

Revision 90bb5fa7

ID90bb5fa79a386fa193639a051e0ff6d2b3606599
Parent 6fbe093f
Child 3411817b

Added by Thomas Mullins about 10 years ago

Fixed event queue bug

View differences:

mainbox/event.c
25 25
  struct event_t *old;
26 26
  if (head && query_add_event(head) == 0) {
27 27
    old = head;
28
    head = head->next;
28
    if (head == tail) {
29
      head = NULL;
30
      tail = NULL;
31
    } else
32
      head = head->next;
29 33
    event_free(old);
30 34
  }
31 35
}

Also available in: Unified diff