Skip to content

Commit

Permalink
fix - Fixed notification manager causing hang
Browse files Browse the repository at this point in the history
---

We've fixed the notification manager causing hang in the kernel when
trying to shut it down and it fails.

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Dec 17, 2024
1 parent 6138ae2 commit 5082d42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/Nitrocid/Misc/Notifications/NotificationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ private static void NotifListen()
List<Notification> NewNotificationsList;
while (!PowerManager.KernelShutdown)
{
SpinWait.SpinUntil(() => sent || dismissing);
SpinWait.SpinUntil(() => sent || dismissing || PowerManager.KernelShutdown);
if (PowerManager.KernelShutdown)
continue;
if (dismissing)
{
dismissing = false;
Expand Down

0 comments on commit 5082d42

Please sign in to comment.