diff --git a/CHANGELOG.md b/CHANGELOG.md index c447c96b..67846ca4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Docker: Resolved errors related to `/tmp/.net` directory not existing. +- An exception that says "Cannot write to a closed TextWriter" would sometimes occur at the end of + running a command. ## [2.2.1] - 2022-06-18 diff --git a/src/Recyclarr/CompositionRoot.cs b/src/Recyclarr/CompositionRoot.cs index 606bf14b..c96ce649 100644 --- a/src/Recyclarr/CompositionRoot.cs +++ b/src/Recyclarr/CompositionRoot.cs @@ -34,7 +34,7 @@ internal class CompositionRoot : ICompositionRoot public IServiceLocatorProxy Setup(ContainerBuilder builder, string? appDataDir, IConsole console, LogEventLevel logLevel) { - builder.RegisterInstance(console).As(); + builder.RegisterInstance(console).As().ExternallyOwned(); RegisterAppPaths(builder, appDataDir); RegisterLogger(builder, logLevel);