aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-14 02:52:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-14 02:52:56 -0400
commit164e7dc896aa71a921f673e2058a2272fc917c4e (patch)
treedcb8bd0bcbef0e7d2f79be851611496c8b4cd6f0 /Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs
parent2d63bdea94751eb1175bc5a2c8ed1a4fafd7e163 (diff)
improve live tv direct play
Diffstat (limited to 'Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs')
-rw-r--r--Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs b/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs
index ca0552d98..a15eb3558 100644
--- a/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs
+++ b/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs
@@ -72,10 +72,18 @@ namespace Emby.Server.Implementations.Devices
private void MigrateDevices()
{
- var files = FileSystem
- .GetFilePaths(GetDevicesPath(), true)
- .Where(i => string.Equals(Path.GetFileName(i), "device.json", StringComparison.OrdinalIgnoreCase))
- .ToList();
+ List<string> files;
+ try
+ {
+ files = FileSystem
+ .GetFilePaths(GetDevicesPath(), true)
+ .Where(i => string.Equals(Path.GetFileName(i), "device.json", StringComparison.OrdinalIgnoreCase))
+ .ToList();
+ }
+ catch (IOException)
+ {
+ return;
+ }
foreach (var file in files)
{