aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-12-22 15:49:21 -0500
committerGitHub <noreply@github.com>2016-12-22 15:49:21 -0500
commitf02fa76c198e77b7c74dff5476de75d18e3f6e56 (patch)
treecc6a25f112c3d110f1ef9bc8c4314273cf299b25 /Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs
parent982d4cbb3eb9f10706399aae196e3213a03930ef (diff)
parentb748d0784a6b2443ba841190a8ca9b6f0ae62828 (diff)
Merge pull request #2359 from softworkz/ServerSyncEvents
Improved server sync event handling
Diffstat (limited to 'Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs')
-rw-r--r--Emby.Server.Implementations/Sync/SyncNotificationEntryPoint.cs12
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()