From 009b63b6a979b2b38a0cb9d4f325a2f86e4c6ab8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 13 Oct 2020 19:13:31 +0000 Subject: [PATCH] Use gh_heap_remove instead of gh_heap_pop when result not needed. --- nsock/src/nsock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsock/src/nsock_core.c b/nsock/src/nsock_core.c index 54d8a1e97..83e78e0ae 100644 --- a/nsock/src/nsock_core.c +++ b/nsock/src/nsock_core.c @@ -1214,7 +1214,7 @@ void process_expired_events(struct npool *nsp) { if (!event_timedout(nse)) break; - gh_heap_pop(&nsp->expirables); + gh_heap_remove(&nsp->expirables, hnode); process_event(nsp, NULL, nse, EV_NONE); assert(nse->event_done); update_first_events(nse);