diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-14 02:55:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-14 02:55:15 -0400 |
| commit | c8244f4687cb26ec1b541767b1ff59fcabbfbdb1 (patch) | |
| tree | f4eb0dfc9d9cd84f551dd445683c44497b623c14 /MediaBrowser.Api/Devices/DeviceService.cs | |
| parent | 7619ff7db543df3d8228aa87aa82a544e8dda54f (diff) | |
| parent | f8a3701bb515dae6be7d8b23bf83c4ce7aac8aa1 (diff) | |
Merge pull request #2952 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Devices/DeviceService.cs')
| -rw-r--r-- | MediaBrowser.Api/Devices/DeviceService.cs | 8 |
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) |
