diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelThread.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelThread.cs index 2b6d2ab0a5..20183d92da 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelThread.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelThread.cs @@ -104,9 +104,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel Post(t => t.OnStopImmediate()); if (!_thread.Join(stepTimeout)) { -#if NET451 - _thread.Abort(); -#endif + _log.LogError(0, null, "KestrelThread.Stop failed to terminate libuv thread."); } } } @@ -116,9 +114,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel // Until we rework this logic, ODEs are bound to happen sometimes. if (!_thread.Join(stepTimeout)) { -#if NET451 - _thread.Abort(); -#endif + _log.LogError(0, null, "KestrelThread.Stop failed to terminate libuv thread."); } } }