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