]> git.proxmox.com Git - mirror_frr.git/blobdiff - pathd/pathd.c
*: Convert thread_cancelXXX to event_cancelXXX
[mirror_frr.git] / pathd / pathd.c
index 0b7792a5cc6b433fb75e510ff535b9335de3ecd9..d1c0c82d9d8034b916173a00f86eae5e91adeed9 100644 (file)
@@ -1329,7 +1329,7 @@ void trigger_pathd_candidate_removed(struct srte_candidate *candidate)
        /* The hook needs to be call synchronously, otherwise the candidate
        path will be already deleted when the handler is called */
        if (candidate->hook_timer != NULL) {
-               thread_cancel(&candidate->hook_timer);
+               event_cancel(&candidate->hook_timer);
                candidate->hook_timer = NULL;
        }
        hook_call(pathd_candidate_removed, candidate);