Commit d8fab96a authored by refactor2's avatar refactor2 Committed by Lemon

not capture context (#75)

parent 24d36f36
......@@ -41,9 +41,9 @@ namespace SkyWalking.Remote
public override void Dispose()
{
TracingContext.ListenerManager.Remove(this);
if(_traceSegments.Count > 0)
if (_traceSegments.Count > 0)
{
BatchSendTraceSegments().GetAwaiter().GetResult();
BatchSendTraceSegments().ConfigureAwait(false).GetAwaiter().GetResult();
}
base.Dispose();
}
......@@ -58,7 +58,7 @@ namespace SkyWalking.Remote
return base.Initializing(token);
}
public async void AfterFinished(ITraceSegment traceSegment)
public void AfterFinished(ITraceSegment traceSegment)
{
if (traceSegment.IsIgnore)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment