event/SocketEvent: use EventLoop::AbandonFD() in Close()

This commit is contained in:
Max Kellermann 2020-10-14 16:29:24 +02:00
parent abf9ae2dd9
commit 521e573be9

View File

@ -53,7 +53,8 @@ SocketEvent::Close() noexcept
if (!fd.IsDefined())
return;
Steal().Close();
loop.AbandonFD(fd.Get());
fd.Close();
}
bool