From 611505c038f1765244548491c3de822c29570336 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Tue, 22 Jan 2019 20:16:38 +0100 Subject: [PATCH] remove refsLeft assert It seems when running in a vibe-d app that the assert fails Even though I would like there to be a check, closing the vibe.d app afterwards shows no leaked handles so I think it's fine. --- source/vibe/core/net.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index aa6e73f..9ae6ef3 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -217,10 +217,8 @@ TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_address = anyA ": timeout"); if (status != ConnectStatus.connected) { - if (sock != SocketFD.invalid) { - bool refsLeft = eventDriver.sockets.releaseRef(sock); - assert(!refsLeft); - } + if (sock != SocketFD.invalid) + eventDriver.sockets.releaseRef(sock); enforce(false, "Failed to connect to "~addr.toString()~": "~status.to!string); assert(false);