diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-07 15:46:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-07 15:46:24 -0400 |
| commit | e210825e54d2199028570489ee4f3d2834676021 (patch) | |
| tree | 506fde69bd181a4993cfe9d10c03432be07c7105 /MediaBrowser.Common.Implementations/BaseApplicationHost.cs | |
| parent | 2b14be8643b8ca483dbd77386b7a0c77e40f3191 (diff) | |
update translations
Diffstat (limited to 'MediaBrowser.Common.Implementations/BaseApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/BaseApplicationHost.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index 3e3fd2333..7bd0ca748 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -678,9 +678,14 @@ namespace MediaBrowser.Common.Implementations /// </summary> public void NotifyPendingRestart() { + var changed = !HasPendingRestart; + HasPendingRestart = true; - EventHelper.QueueEventIfNotNull(HasPendingRestartChanged, this, EventArgs.Empty, Logger); + if (changed) + { + EventHelper.QueueEventIfNotNull(HasPendingRestartChanged, this, EventArgs.Empty, Logger); + } } /// <summary> |
