diff options
| author | softworkz <softworkz@hotmail.com> | 2016-12-20 22:40:07 +0100 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2016-12-20 22:42:50 +0100 |
| commit | b748d0784a6b2443ba841190a8ca9b6f0ae62828 (patch) | |
| tree | 6d8e88f01f80815ac322809c1e30f9912745594d /Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs | |
| parent | 27c4c30082d8b8d122041f1c6080148bd4c92382 (diff) | |
Enhanced sync events
Diffstat (limited to 'Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs')
| -rw-r--r-- | Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs b/Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs index 46cdb28a4..06e0e66a9 100644 --- a/Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs +++ b/Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs @@ -38,6 +38,18 @@ namespace Emby.Server.Implementations.Sync } } + + if (item.Status == SyncJobItemStatus.Cancelled) + { + try + { + await _sessionManager.SendMessageToUserDeviceSessions(item.TargetId, "SyncJobItemCancelled", item, CancellationToken.None).ConfigureAwait(false); + } + catch + { + + } + } } public void Dispose() |
