From 521e573be9a6464ab41237c75bcc55a55fcf5847 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Oct 2020 16:29:24 +0200 Subject: [PATCH] event/SocketEvent: use EventLoop::AbandonFD() in Close() --- src/event/SocketEvent.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event/SocketEvent.cxx b/src/event/SocketEvent.cxx index eba2f32b5..a4e04f072 100644 --- a/src/event/SocketEvent.cxx +++ b/src/event/SocketEvent.cxx @@ -53,7 +53,8 @@ SocketEvent::Close() noexcept if (!fd.IsDefined()) return; - Steal().Close(); + loop.AbandonFD(fd.Get()); + fd.Close(); } bool