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 6d489c5 commit 491e433
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DotClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,11 @@ void ReadResponses(Stream stream)
}
catch (Exception e)
{
#if NETSTANDARD14
if (stream.CanRead)
#else
if (Thread.CurrentThread.IsAlive && stream.CanRead)
#endif
{
log.Error(e);
}
Expand Down

0 comments on commit 491e433

Please sign in to comment.