chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
https://chronoxor.github.io/NetCoreServer
MIT License
2.63k stars 550 forks source link

fix(UdpServer): Avoid debug assertion if disposing not started server #285

Open rmja opened 7 months ago

rmja commented 7 months ago

There is currently the following assertion in Stop(): Debug.Assert(IsStarted, "UDP server is not started!");, however it should be valid to dispose the object without the server being started.