diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-02-03 22:34:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 22:34:40 -0500 |
| commit | 20033f2275361ed4d46df77da0694f8f7dc3f04f (patch) | |
| tree | 958ec85809d478ad3088d101365f1695e6ba617f /MediaBrowser.Api/ApiEntryPoint.cs | |
| parent | be89d53a9e16e16f434c35e22814f1d9fe3fc16d (diff) | |
| parent | c4c0894b29898ab6826542abc7a247291b46f804 (diff) | |
Merge branch 'master' into fix-env
Diffstat (limited to 'MediaBrowser.Api/ApiEntryPoint.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiEntryPoint.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index a212d3f3a..88654a42c 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -130,7 +130,7 @@ namespace MediaBrowser.Api /// <summary> /// Runs this instance. /// </summary> - public void Run() + public Task RunAsync() { try { @@ -148,6 +148,8 @@ namespace MediaBrowser.Api { Logger.LogError(ex, "Error deleting encoded media cache"); } + + return Task.CompletedTask; } public EncodingOptions GetEncodingOptions() @@ -162,8 +164,7 @@ namespace MediaBrowser.Api { var path = _config.ApplicationPaths.TranscodingTempPath; - foreach (var file in _fileSystem.GetFilePaths(path, true) - .ToList()) + foreach (var file in _fileSystem.GetFilePaths(path, true)) { _fileSystem.DeleteFile(file); } |
