Browse Source

Merge branch 'v2_netdriver-OperationCanceledException-fix_3347' into tig_v2_3338-Toplevel-Must-Be-Disposed

BDisp 1 year ago
parent
commit
c2cfa808a9
1 changed files with 3 additions and 3 deletions
  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)