mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add null check in HandlerQueue
This commit is contained in:
parent
5d3e159f54
commit
8b8cf932a3
1 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,8 @@ namespace PluralKit.Core
|
|||
|
||||
public async Task<bool> TryHandle(T evt)
|
||||
{
|
||||
_handlers.RemoveAll(he => !he.Alive);
|
||||
// Saw spurious NREs in prod indicating `he` is null, add a special check for that for now
|
||||
_handlers.RemoveAll(he => he == null || !he.Alive);
|
||||
|
||||
var now = SystemClock.Instance.GetCurrentInstant();
|
||||
foreach (var entry in _handlers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue