mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 02:02:30 +00:00
Hyper-V fix.
This commit is contained in:
parent
23cc82d3a8
commit
daa40d38e2
1 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ using System.Net.Sockets;
|
|||
using System.Reflection;
|
||||
using System.Security.AccessControl;
|
||||
using System.Security.Principal;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cosmos.Debug.HyperVServer
|
||||
|
|
@ -179,7 +178,10 @@ namespace Cosmos.Debug.HyperVServer
|
|||
_namedPipeClient.Write(buffer, 0, writtenByteCount);
|
||||
}
|
||||
|
||||
await Task.Delay(100).ConfigureAwait(false);
|
||||
if (readByteCount == 0 && writtenByteCount == 0)
|
||||
{
|
||||
await Task.Delay(500).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue