Explorar o código

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

BDisp hai 1 mes
pai
achega
847123aa00
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Terminal.Gui/Drivers/NetDriver/NetEvents.cs

+ 1 - 1
Terminal.Gui/Drivers/NetDriver/NetEvents.cs

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