dotnet / WatsonTcp

WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
MIT License
599 stars 117 forks source link

Issue reported by Sentry #277

Closed wesoos closed 10 months ago

wesoos commented 10 months ago

Hello, I have Sentry hooked into one of my projects using WatsonTcp. I'm seeing the following error reported somewhere in Watson.

async Task WatsonTcpClient.IdleServerMonitor(CancellationToken token)

System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

System.NullReferenceException: Object reference not set to an instance of an object.

jchristn commented 10 months ago

Hi @wesoos I just published v6.0.5 which has try/catch inside of the IdleServerMonitor method. Please re-open if the issue persists.