Remove invalid assertion.
Since file descriptors are now identified using their validation counter, it is a valid operation to invalidate a slot that is still referenced. This fixes a related test failure in vibe-core.
This commit is contained in:
parent
555d1e8867
commit
b0ed2389fa
|
@ -402,7 +402,6 @@ package class PosixEventLoop {
|
||||||
|
|
||||||
auto slot = () @trusted { return &m_fds[fd.value]; } ();
|
auto slot = () @trusted { return &m_fds[fd.value]; } ();
|
||||||
assert(slot.common.validationCounter == fd.validationCounter, "Clearing FD slot for invalid FD");
|
assert(slot.common.validationCounter == fd.validationCounter, "Clearing FD slot for invalid FD");
|
||||||
assert(slot.common.refCount == 0, "Clearing referenced file descriptor slot.");
|
|
||||||
assert(slot.specific.hasType!T, "Clearing file descriptor slot with unmatched type.");
|
assert(slot.specific.hasType!T, "Clearing file descriptor slot with unmatched type.");
|
||||||
|
|
||||||
if (!(slot.common.flags & FDFlags.internal))
|
if (!(slot.common.flags & FDFlags.internal))
|
||||||
|
|
Loading…
Reference in a new issue