[*] Loop queue nt bug

This commit is contained in:
Reece Wilson 2022-03-11 04:07:15 +00:00
parent 0d969c3560
commit c826df484e

View File

@ -762,8 +762,11 @@ namespace Aurora::Loop
// Notify all and remove if unwanted // Notify all and remove if unwanted
{ {
AU_LOCK_GUARD(this->sourceMutex_); AU_LOCK_GUARD(this->sourceMutex_);
AuTryInsert(*trigger, this->msgSource_); if (trigger)
{
AuTryInsert(*trigger, this->msgSource_);
}
bool shouldRemove {true}; bool shouldRemove {true};
for (const auto &handler : this->msgCallbacks_) for (const auto &handler : this->msgCallbacks_)