diff --git a/source/NetCoreServer/UdpServer.cs b/source/NetCoreServer/UdpServer.cs index 183b9ef..35198d7 100644 --- a/source/NetCoreServer/UdpServer.cs +++ b/source/NetCoreServer/UdpServer.cs @@ -934,7 +934,10 @@ protected virtual void Dispose(bool disposingManagedResources) if (disposingManagedResources) { // Dispose managed resources here... - Stop(); + if (IsStarted) + { + Stop(); + } } // Dispose unmanaged resources here...