diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-04 11:20:44 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-04 11:20:44 -0500 |
| commit | f1a7d9064063d1cc73a0fe9ed3f1fd9b5f5b5f55 (patch) | |
| tree | 8a6025c4ab086da29aa9da6b24d81d9b8dd68c5d /MediaBrowser.Controller/Entities | |
| parent | 4bbe8acb5cfc5c4a0c392db71d2858589c8f345f (diff) | |
fix scan stopping and restarting itself multiple times when adding/removing collections
Diffstat (limited to 'MediaBrowser.Controller/Entities')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index a4ba146165..7b335b7194 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -1347,12 +1347,14 @@ namespace MediaBrowser.Controller.Entities try { - if (LocationType == LocationType.Remote && string.Equals(Path, path, StringComparison.OrdinalIgnoreCase)) + var locationType = LocationType; + + if (locationType == LocationType.Remote && string.Equals(Path, path, StringComparison.OrdinalIgnoreCase)) { return this; } - - if (LocationType != LocationType.Virtual && ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase)) + + if (locationType != LocationType.Virtual && ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase)) { return this; } |
