diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-17 11:05:12 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-17 11:05:12 -0400 |
| commit | 034c0b95b2f9cc6440bac8b5844abfdc97db8990 (patch) | |
| tree | b591233733fb2aa79ac0c57a1b516ca90d9f155c /MediaBrowser.Server.Startup.Common/Migrations | |
| parent | 317a4872299b9c3fcc9b43eceff7c06cb696ab72 (diff) | |
3.0.5768.1
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/Migrations')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/Migrations/Release5767.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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<RefreshMediaLibraryTask>(); }); + // 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(); |
