Merge pull request #1339 from MediaBrowser/master

fix file deletion
This commit is contained in:
Luke 2015-12-19 15:23:46 -05:00
commit 5065acc821

View File

@ -66,7 +66,7 @@ namespace MediaBrowser.Server.Implementations.Sync
// Do the data sync twice so the server knows what was removed from the device
await SyncData(provider, dataProvider, serverId, target, cancellationToken).ConfigureAwait(false);
progress.Report(100);
}
@ -331,6 +331,9 @@ namespace MediaBrowser.Server.Implementations.Sync
await provider.DeleteFile(file, target, cancellationToken).ConfigureAwait(false);
}
_logger.Debug("Removing {0} from {1}.", localItem.FileId, target.Name);
await provider.DeleteFile(localItem.FileId, target, cancellationToken).ConfigureAwait(false);
await dataProvider.Delete(target, localItem.Id).ConfigureAwait(false);
}
}