event/SocketEvent: allow Close() without socket
This commit is contained in:
@@ -50,6 +50,9 @@ SocketEvent::Steal() noexcept
|
||||
void
|
||||
SocketEvent::Close() noexcept
|
||||
{
|
||||
if (!fd.IsDefined())
|
||||
return;
|
||||
|
||||
Steal().Close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user