Clear the full FD slot after the FD has been closed.
This commit is contained in:
parent
92c6783ef3
commit
d6e77adfc5
|
@ -1408,7 +1408,7 @@ package class PosixEventLoop {
|
|||
{
|
||||
if (m_fds[fd.value].common.userDataDestructor)
|
||||
() @trusted { m_fds[fd.value].common.userDataDestructor(m_fds[fd.value].common.userData.ptr); } ();
|
||||
m_fds[fd.value].common = FDSlot.init;
|
||||
m_fds[fd.value] = m_fds.FullField.init;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue