RSSDP icon indicating copy to clipboard operation
RSSDP copied to clipboard

Unhandled exception when UdpSocket is disposed but inner disposed socket receives an input

Open gelexgaray opened this issue 4 years ago • 0 comments

on public System.Threading.Tasks.Task<ReceivedUdpData> ReceiveAsync()

When the UdpSocket is disposed and the inner socket is also disposed, ReceiveAsync raises a DisposedException on network input. It shouldn't raise any exception in this case.

This is managed in the NETSTANDARD1.3 code, but not in the rest of the variants of the code

I will send you a pull request with a fix proposal

gelexgaray avatar Nov 25 '20 10:11 gelexgaray