We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7808784 commit 836e499Copy full SHA for 836e499
Runtime/MpfWrangler.cs
@@ -287,11 +287,20 @@ public async Task StopMpf()
287
var client = new MpfHardwareService.MpfHardwareServiceClient(_grpcChannel);
288
try
289
{
290
- await client.QuitAsync(
+ await Task.Delay(100);
291
+ _ = await client.QuitAsync(
292
new QuitRequest(),
293
deadline: DateTime.UtcNow.AddSeconds(1)
294
);
295
}
296
+ catch (RpcException ex) when (_mediaController == MpfMediaController.Other)
297
+ {
298
+ Logger.Info(
299
+ "MPF did not respond to the quit RPC. This is probably because MPF "
300
+ + "has already shut down because the BCP connection was closed."
301
+ + $"Exception: {ex}"
302
+ );
303
+ }
304
finally
305
306
0 commit comments