Commit 68ba774f authored by Julian Bouzas's avatar Julian Bouzas
Browse files

endpoint: steal the endpoint link from the list before destroying it

The wp_endpoint_link_destroy API removes the link from both endpoints. If this
is called in the endpoint destructor, we need to make sure the link is not in
the endpoint link list (by stealing it) to prevent the API destroying it again.
parent 73978f76
Pipeline #79590 passed with stage
in 5 minutes and 28 seconds