mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing memory pressure when creating new tenants
--HG-- branch : 1.x
This commit is contained in:
@@ -167,6 +167,7 @@ namespace Orchard.Environment {
|
||||
if (_current != null) {
|
||||
foreach (var shellContext in _current) {
|
||||
shellContext.Shell.Terminate();
|
||||
shellContext.LifetimeScope.Dispose();
|
||||
}
|
||||
_current = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user