Skip to content

Commit

Permalink
fix(DotClient): do not log error when thread is aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Apr 8, 2019
1 parent 491e433 commit 8def23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ void ReadResponses(Stream stream)
#if NETSTANDARD14
if (stream.CanRead)
#else
if (Thread.CurrentThread.IsAlive && stream.CanRead)
if (stream.CanRead && !(e.InnerException is ThreadAbortException))
#endif
{
log.Error(e);
log.Error(e);
}
stream.Dispose();
}
Expand Down

0 comments on commit 8def23c

Please sign in to comment.