From bd0b53c2f25639231a9ed65dcd6e421da536d454 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Wed, 31 Mar 2021 12:41:40 -0700 Subject: [PATCH] Also catch aggregate exception --- src/Microsoft.Tye.Hosting/ProxyService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Microsoft.Tye.Hosting/ProxyService.cs b/src/Microsoft.Tye.Hosting/ProxyService.cs index 2f668b52..b11d60fa 100644 --- a/src/Microsoft.Tye.Hosting/ProxyService.cs +++ b/src/Microsoft.Tye.Hosting/ProxyService.cs @@ -189,6 +189,9 @@ namespace Microsoft.Tye.Hosting { await _host.StopAsync(); } + catch (AggregateException) + { + } catch (ObjectDisposedException) { // System.ObjectDisposedException: Cannot access a disposed object.