event/SocketEvent: check/clear scheduled_flags in Close()
Fixes regression by commit 521e573be9
This commit is contained in:
parent
1c079e554b
commit
55db7105c5
@ -53,7 +53,8 @@ SocketEvent::Close() noexcept
|
||||
if (!fd.IsDefined())
|
||||
return;
|
||||
|
||||
loop.AbandonFD(fd.Get());
|
||||
if (std::exchange(scheduled_flags, 0) != 0)
|
||||
loop.AbandonFD(fd.Get());
|
||||
fd.Close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user