@@ -167,9 +167,14 @@ internal class UnixMainLoop (ConsoleDriver consoleDriver) : IMainLoopDriver
{
((IMainLoopDriver)this)._waitForInput.Wait (_inputHandlerTokenSource.Token);
}
- catch (OperationCanceledException)
+ catch (Exception ex)
- return;
+ if (ex is OperationCanceledException or ObjectDisposedException)
+ {
+ return;
+ }
+
+ throw;
((IMainLoopDriver)this)._waitForInput.Reset ();
@@ -126,9 +126,14 @@ internal class NetMainLoop : IMainLoopDriver
_waitForProbe.Wait (_inputHandlerTokenSource.Token);
_waitForProbe.Reset ();
@@ -191,9 +191,14 @@ internal class WindowsConsole
- catch (Exception)
- return null;
+ return null;
@@ -162,9 +162,14 @@ internal class WindowsMainLoop : IMainLoopDriver