Skip to content

Commit

Permalink
Fix off by one error in import
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwe committed Apr 1, 2020
1 parent dc289c2 commit 116289b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Services/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task OnItemsAddedAsync(IFileSource source, IReadOnlyCollection<IFil

private async Task ImportBatched(IFileSource source, List<IFileInfo> itemsForImport, Dictionary<string, ImportedFileInfo> currentSourceFiles)
{
var current = 0;
var current = -1;
var tasks = new Task[Parallelism];
for (var i = 0; i < tasks.Length; i++)
{
Expand Down

0 comments on commit 116289b

Please sign in to comment.