Fix compiler warning due to missing EnumeratorCancellation attribute
This commit is contained in:
parent
0894a6193f
commit
b5b994b22f
|
@ -3,6 +3,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Emby.Naming.Audio;
|
using Emby.Naming.Audio;
|
||||||
|
@ -40,8 +41,11 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||||
int startIndex,
|
int startIndex,
|
||||||
IDirectoryService directoryService,
|
IDirectoryService directoryService,
|
||||||
bool clearCache,
|
bool clearCache,
|
||||||
CancellationToken cancellationToken)
|
[EnumeratorCancellation] CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
if (!video.IsFileProtocol)
|
if (!video.IsFileProtocol)
|
||||||
{
|
{
|
||||||
yield break;
|
yield break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user