From 034c0b95b2f9cc6440bac8b5844abfdc97db8990 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 17 Oct 2015 11:05:12 -0400 Subject: 3.0.5768.1 --- MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Server.Startup.Common/Migrations') diff --git a/MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs b/MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs index 9a4580c127..d1c085734e 100644 --- a/MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs +++ b/MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs @@ -20,9 +20,9 @@ namespace MediaBrowser.Server.Startup.Common.Migrations _taskManager = taskManager; } - public void Run() + public async void Run() { - var name = "5767"; + var name = "5767.1"; if (_config.Configuration.Migrations.Contains(name, StringComparer.OrdinalIgnoreCase)) { @@ -38,6 +38,9 @@ namespace MediaBrowser.Server.Startup.Common.Migrations _taskManager.QueueScheduledTask(); }); + // Wait a few minutes before marking this as done. Make sure the server doesn't get restarted. + await Task.Delay(300000).ConfigureAwait(false); + var list = _config.Configuration.Migrations.ToList(); list.Add(name); _config.Configuration.Migrations = list.ToArray(); -- cgit v1.2.3