Fixes #4211. Annoying sporadic System.NullReferenceException in NetEvents (#4213)

This commit is contained in:
BDisp
2025-07-27 01:38:44 +01:00
committed by GitHub
parent 807f1fdcc8
commit 847123aa00

View File

@@ -50,7 +50,7 @@ internal class NetEvents : IDisposable
public InputResult? DequeueInput () public InputResult? DequeueInput ()
{ {
while (!_netEventsDisposed.Token.IsCancellationRequested) while (_netEventsDisposed is { Token.IsCancellationRequested: false })
{ {
_winChange.Set (); _winChange.Set ();