From c826df484e9cb25bf46a9c321ff0ece7ca44c427 Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 11 Mar 2022 04:07:15 +0000 Subject: [PATCH] [*] Loop queue nt bug --- Source/Loop/LoopQueue.NT.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Loop/LoopQueue.NT.cpp b/Source/Loop/LoopQueue.NT.cpp index 8280e518..cd53cfbf 100644 --- a/Source/Loop/LoopQueue.NT.cpp +++ b/Source/Loop/LoopQueue.NT.cpp @@ -762,8 +762,11 @@ namespace Aurora::Loop // Notify all and remove if unwanted { AU_LOCK_GUARD(this->sourceMutex_); - - AuTryInsert(*trigger, this->msgSource_); + + if (trigger) + { + AuTryInsert(*trigger, this->msgSource_); + } bool shouldRemove {true}; for (const auto &handler : this->msgCallbacks_)