ServiceDescriptor waits a little for initial pipe setup.
This commit is contained in:
parent
ccff87fc63
commit
8ebe9ee9f7
@ -80,7 +80,8 @@ namespace GameServiceWarden.Core.Games
|
|||||||
ValueTask sendTokenTask = logSender.WriteAsync(idToken);
|
ValueTask sendTokenTask = logSender.WriteAsync(idToken);
|
||||||
byte[] receivedToken = new byte[idToken.Length];
|
byte[] receivedToken = new byte[idToken.Length];
|
||||||
logReceiver.Read(receivedToken);
|
logReceiver.Read(receivedToken);
|
||||||
if (!sendTokenTask.IsCompletedSuccessfully) {
|
|
||||||
|
if (!sendTokenTask.AsTask().Wait(500) || !sendTokenTask.IsCompletedSuccessfully) {
|
||||||
throw new ServiceInitializationException("Error while sending identification token.");
|
throw new ServiceInitializationException("Error while sending identification token.");
|
||||||
}
|
}
|
||||||
if (!idToken.SequenceEqual(receivedToken)) {
|
if (!idToken.SequenceEqual(receivedToken)) {
|
||||||
|
Reference in New Issue
Block a user