From c958370e3738f826507a9abfb39ede65641cbcfb Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 23 Jun 2020 14:25:08 +0200 Subject: [PATCH] Fixed issue #3 --- example/client/dub.selections.json | 2 +- example/server/dub.selections.json | 2 +- source/tristanable/garbage.d | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/client/dub.selections.json b/example/client/dub.selections.json index 226783f..11f6af2 100644 --- a/example/client/dub.selections.json +++ b/example/client/dub.selections.json @@ -2,6 +2,6 @@ "fileVersion": 1, "versions": { "bformat": "1.0.8", - "tristanable": "0.0.17" + "tristanable": "0.0.18" } } diff --git a/example/server/dub.selections.json b/example/server/dub.selections.json index 226783f..11f6af2 100644 --- a/example/server/dub.selections.json +++ b/example/server/dub.selections.json @@ -2,6 +2,6 @@ "fileVersion": 1, "versions": { "bformat": "1.0.8", - "tristanable": "0.0.17" + "tristanable": "0.0.18" } } diff --git a/source/tristanable/garbage.d b/source/tristanable/garbage.d index 208d7b0..5c48d14 100644 --- a/source/tristanable/garbage.d +++ b/source/tristanable/garbage.d @@ -42,10 +42,10 @@ public final class GarbageCollector : Thread /* Construct a new list */ Request[] newList; - /* Only add to this list unfulfilled requests */ + /* Only add to this list undead requests */ foreach(Request request; *requestQueueVariable) { - if(!request.isFulfilled()) + if(!request.isDead) { newList ~= request; }