Browse Source

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

BDisp 1 tháng trước cách đây
mục cha
commit
847123aa00
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ();