]> www.tinc-vpn.org Git - tinc/blobdiff - src/event.c
When building the minimum spanning tree, make sure we start from a reachable node.
[tinc] / src / event.c
index 5cf8b48b4cc22d5865fe44c43e95c10c03c5589e..e7fbb882c1cb9a42d426edfff48a9603181f2207 100644 (file)
@@ -1,7 +1,7 @@
 /*
     event.c -- event queue
 /*
     event.c -- event queue
-    Copyright (C) 2002-2005 Guus Sliepen <guus@tinc-vpn.org>,
-                  2002-2005 Ivo Timmermans <ivo@tinc-vpn.org>
+    Copyright (C) 2002-2006 Guus Sliepen <guus@tinc-vpn.org>,
+                  2002-2005 Ivo Timmermans
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -96,7 +96,7 @@ event_t *get_expired_event(void)
                event = event_tree->head->data;
 
                if(event->time < now) {
                event = event_tree->head->data;
 
                if(event->time < now) {
-                       avl_delete(event_tree, event);
+                       event_del(event);
                        return event;
                }
        }
                        return event;
                }
        }