Selaa lähdekoodia

Fixes #3347. NetDriver throws System.OperationCanceledException: 'The operation was canceled.'

BDisp 1 vuosi sitten
vanhempi
commit
bbf852c532
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      Terminal.Gui/ConsoleDrivers/NetDriver.cs

+ 3 - 3
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -374,11 +374,11 @@ internal class NetEvents : IDisposable
                 return;
             }
 
-            _winChange.Wait (_inputReadyCancellationTokenSource.Token);
-            _winChange.Reset ();
-
             try
             {
+                _winChange.Wait (_inputReadyCancellationTokenSource.Token);
+                _winChange.Reset ();
+
                 RequestWindowSize (_inputReadyCancellationTokenSource.Token);
             }
             catch (OperationCanceledException)