aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/ApplicationHost.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-13 11:38:43 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-13 11:38:43 -0500
commitbe1ce0f80275a1718dc89dd65e2919e9eab8eb7b (patch)
tree68dc8095701f4b8c45a073c46f4097827e6627c3 /MediaBrowser.ServerApplication/ApplicationHost.cs
parenteec9e0482525c400e9dc7cb17bc000434adba105 (diff)
convert static remote streaming to use internal interfaces
Diffstat (limited to 'MediaBrowser.ServerApplication/ApplicationHost.cs')
-rw-r--r--MediaBrowser.ServerApplication/ApplicationHost.cs49
1 files changed, 26 insertions, 23 deletions
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs
index 5af08073b..fe734bcf8 100644
--- a/MediaBrowser.ServerApplication/ApplicationHost.cs
+++ b/MediaBrowser.ServerApplication/ApplicationHost.cs
@@ -259,32 +259,35 @@ namespace MediaBrowser.ServerApplication
// Not there, no big deal
}
- try
+ Task.Run(() =>
{
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "remote-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
+ try
+ {
+ Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "remote-images"), true);
+ }
+ catch (IOException)
+ {
+ // Not there, no big deal
+ }
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-video-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
+ try
+ {
+ Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-video-images"), true);
+ }
+ catch (IOException)
+ {
+ // Not there, no big deal
+ }
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-audio-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
+ try
+ {
+ Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-audio-images"), true);
+ }
+ catch (IOException)
+ {
+ // Not there, no big deal
+ }
+ });
}
/// <summary>