projects
/
platform
/
core
/
dotnet
/
diagnostics.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c235e7
)
Catch ServerNotAvailableException being thrown on non-abrupt exits of target app...
author
Sung Yoon Whang
<suwhang@microsoft.com>
Tue, 7 Jul 2020 04:00:37 +0000
(21:00 -0700)
committer
GitHub
<noreply@github.com>
Tue, 7 Jul 2020 04:00:37 +0000
(21:00 -0700)
src/Tools/dotnet-counters/CounterMonitor.cs
patch
|
blob
|
history
diff --git
a/src/Tools/dotnet-counters/CounterMonitor.cs
b/src/Tools/dotnet-counters/CounterMonitor.cs
index ab2b551b5373f152b72d40d4386149e99a3c5eca..8ab722ad12113c088664f72b09001391a6451e99 100644
(file)
--- a/
src/Tools/dotnet-counters/CounterMonitor.cs
+++ b/
src/Tools/dotnet-counters/CounterMonitor.cs
@@
-80,6
+80,10
@@
namespace Microsoft.Diagnostics.Tools.Counters
catch (PlatformNotSupportedException)
{
}
+ // On non-abrupt exits, the socket may be already closed by the runtime and we won't be able to send a stop request through it.
+ catch (ServerNotAvailableException)
+ {
+ }
_renderer.Stop();
}