event/SocketEvent: use EventLoop::AbandonFD() in Close()
This commit is contained in:
parent
abf9ae2dd9
commit
521e573be9
@ -53,7 +53,8 @@ SocketEvent::Close() noexcept
|
|||||||
if (!fd.IsDefined())
|
if (!fd.IsDefined())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Steal().Close();
|
loop.AbandonFD(fd.Get());
|
||||||
|
fd.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user