mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fix NetDriver to also work well in Linux.
This commit is contained in:
@@ -756,7 +756,17 @@ internal class NetDriver : ConsoleDriver
|
||||
|
||||
_mainLoopDriver._netEvents._forceRead = true;
|
||||
}
|
||||
_waitAnsiResponse.Wait (_ansiResponseTokenSource.Token);
|
||||
|
||||
if (!_ansiResponseTokenSource.IsCancellationRequested)
|
||||
{
|
||||
lock (ansiRequest._responseLock)
|
||||
{
|
||||
_mainLoopDriver._waitForProbe.Set ();
|
||||
_mainLoopDriver._netEvents._waitForStart.Set ();
|
||||
}
|
||||
|
||||
_waitAnsiResponse.Wait (_ansiResponseTokenSource.Token);
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user