]> git.meshlink.io Git - meshlink/blobdiff - src/graph.c
Remove the last bits of the legacy main_loop().
[meshlink] / src / graph.c
index 02650f7330238d53487a83debfd45173fe0fd880..958947721f4446a4d2fd3eebf6dfbb5cb593e92c 100644 (file)
@@ -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});
 }