Hyper-V fix.

This commit is contained in:
José Pedro 2018-07-18 23:15:59 +01:00
parent 23cc82d3a8
commit daa40d38e2
No known key found for this signature in database
GPG key ID: B8247B9301707B83

View file

@ -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);
}
}
}
}