aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-12-26 12:48:24 -0500
committerGitHub <noreply@github.com>2016-12-26 12:48:24 -0500
commit6a89ec6556b47f46b6a87240a82bc872fed5a972 (patch)
tree3485585ebd551109e7dbfb61a587f7cf6c0b72e3 /Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
parenta8381586237a3294476c55b3af63cb7c162adfea (diff)
parent325066f7edb52481e93be3b3d90db45645d6924b (diff)
Merge pull request #2366 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
index 38708648f..561f5ee12 100644
--- a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
+++ b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs
@@ -51,7 +51,7 @@ namespace Emby.Server.Implementations.EntryPoints
if (_appHost.HasPendingRestart)
{
- _timer = _timerFactory.Create(TimerCallback, null, TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10));
+ _timer = _timerFactory.Create(TimerCallback, null, TimeSpan.FromMinutes(15), TimeSpan.FromMinutes(15));
}
}
@@ -65,6 +65,8 @@ namespace Emby.Server.Implementations.EntryPoints
{
DisposeTimer();
+ _logger.Info("Automatically restarting the system because it is idle and a restart is required.");
+
try
{
_appHost.Restart();