make channel access opt-in rather than opt out

This commit is contained in:
Luke Pulverenti
2015-01-12 22:46:44 -05:00
parent f552174069
commit d8d5dd4873
72 changed files with 399 additions and 241 deletions

View File

@@ -1492,7 +1492,7 @@ namespace MediaBrowser.Server.Implementations.Channels
}
else
{
File.Delete(response.TempFilePath);
_fileSystem.DeleteFile(response.TempFilePath);
throw new ApplicationException("Unexpected response type encountered: " + response.ContentType);
}
@@ -1501,7 +1501,7 @@ namespace MediaBrowser.Server.Implementations.Channels
try
{
File.Delete(response.TempFilePath);
_fileSystem.DeleteFile(response.TempFilePath);
}
catch
{