From b0ed2389fa8ec8ba70153dd7b0c422202ce45513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 18 May 2020 15:09:34 +0200 Subject: [PATCH] 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. --- source/eventcore/drivers/posix/driver.d | 1 - 1 file changed, 1 deletion(-) diff --git a/source/eventcore/drivers/posix/driver.d b/source/eventcore/drivers/posix/driver.d index 20c04e1..1997689 100644 --- a/source/eventcore/drivers/posix/driver.d +++ b/source/eventcore/drivers/posix/driver.d @@ -402,7 +402,6 @@ package class PosixEventLoop { auto slot = () @trusted { return &m_fds[fd.value]; } (); 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."); if (!(slot.common.flags & FDFlags.internal))