Skip to content

Commit

Permalink
Add catch for ObjectDisposedException in the MockTracerAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharycmontoya committed Aug 12, 2019
1 parent 9ef02f0 commit 38dff6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Datadog.Trace.TestHelpers/MockTracerAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ private void HandleHttpRequests()
// listener was stopped,
// ignore to let the loop end and the method return
}
catch (ObjectDisposedException)
{
// listener was disposed,
// ignore to let the loop end and the method return
}
}
}

Expand Down

0 comments on commit 38dff6c

Please sign in to comment.