Clear the full FD slot after the FD has been closed.

This commit is contained in:
Sönke Ludwig 2016-10-24 07:55:39 +02:00
parent 92c6783ef3
commit d6e77adfc5

View file

@ -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;
}
}