X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=958947721f4446a4d2fd3eebf6dfbb5cb593e92c;hb=760dd966efe7dbff316a8c638e40dee162848256;hp=02650f7330238d53487a83debfd45173fe0fd880;hpb=4d0621b1f39537699b0ec4655b0c6e6b84581c9a;p=tinc diff --git a/src/graph.c b/src/graph.c index 02650f73..95894772 100644 --- a/src/graph.c +++ b/src/graph.c @@ -376,7 +376,7 @@ void graph(void) sssp_bfs(); mst_kruskal(); - if(!ev.ev_callback) + if(!timeout_initialized(&ev)) timeout_set(&ev, dump_graph, NULL); event_add(&ev, &(struct timeval){5, 0}); }