mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
parent
58cede6b30
commit
80856c2d13
@ -127,11 +127,13 @@ namespace Orchard.Environment {
|
||||
|
||||
void StartUpdatedShells() {
|
||||
while (_tenantsToRestart.GetState().Any()) {
|
||||
var settings = _tenantsToRestart.GetState().First();
|
||||
_tenantsToRestart.GetState().Remove(settings);
|
||||
Logger.Debug("Updating shell: " + settings.Name);
|
||||
lock (_syncLock) {
|
||||
ActivateShell(settings);
|
||||
var state = _tenantsToRestart.GetState();
|
||||
foreach (var settings in state) {
|
||||
Logger.Debug("Updating shell: " + settings.Name);
|
||||
ActivateShell(settings);
|
||||
}
|
||||
state.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user