aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Devices/DeviceService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-13 15:18:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-13 15:18:05 -0400
commit9fdaa039c4b1e95842a219499f80ac963bbdb91e (patch)
treeb182b6fd7a2b587d8dde9a7e13a2710ceb2d06cb /MediaBrowser.Api/Devices/DeviceService.cs
parentc583d49541f297a103956d6d3bdc20cf1d681b8e (diff)
rework device repository
Diffstat (limited to 'MediaBrowser.Api/Devices/DeviceService.cs')
-rw-r--r--MediaBrowser.Api/Devices/DeviceService.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Devices/DeviceService.cs b/MediaBrowser.Api/Devices/DeviceService.cs
index 012f0ddb2..c375e272a 100644
--- a/MediaBrowser.Api/Devices/DeviceService.cs
+++ b/MediaBrowser.Api/Devices/DeviceService.cs
@@ -85,13 +85,11 @@ namespace MediaBrowser.Api.Devices
public void Post(PostDeviceOptions request)
{
- var task = _deviceManager.UpdateDeviceInfo(request.Id, new DeviceOptions
+ _deviceManager.UpdateDeviceInfo(request.Id, new DeviceOptions
{
CustomName = request.CustomName,
CameraUploadPath = request.CameraUploadPath
});
-
- Task.WaitAll(task);
}
public object Get(GetDeviceInfo request)
@@ -116,9 +114,7 @@ namespace MediaBrowser.Api.Devices
public void Delete(DeleteDevice request)
{
- var task = _deviceManager.DeleteDevice(request.Id);
-
- Task.WaitAll(task);
+ _deviceManager.DeleteDevice(request.Id);
}
public void Post(PostCameraUpload request)