From ff372498cf34e8f12af7f1a957310bd32addf0ab Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 15 Sep 2021 14:53:31 +0200 Subject: [PATCH] Forgot to add the Queue for the Task's typeID to the Eventy Engine --- source/tasky/engine.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/tasky/engine.d b/source/tasky/engine.d index 6412b15..3cb38d3 100644 --- a/source/tasky/engine.d +++ b/source/tasky/engine.d @@ -133,6 +133,7 @@ public final class TaskManager : Thread /* Get the Event for dispatching */ Event dispatchEvent = job.getEventForDispatch(); + writeln("Tasky: Job is fulfilled ", job); /* Dispatch the event */ @@ -242,6 +243,10 @@ public final class TaskManager : Thread { Signal signalHandler = new Signal([typeID], handler); eventEngine.addSignalHandler(signalHandler); + + /* Because this happens at the same time and a queue for this type would exist add that too */ + /* TODO: Make eventy crash if typeID for non-existent queue */ + eventEngine.addQueue(typeID); } }