Skip to content

Commit

Permalink
Fixed #232
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Jun 6, 2016
1 parent 8be89ee commit efeffa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/FFImageLoading.Common/Work/WorkScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private async Task RunAsync()

private async Task QueueTaskAsync(PendingTask pendingTask, bool scheduleOnThreadPool)
{
lock (_pendingTasks)
lock (_pendingTasksLock)
{
if (_currentlyRunning.Count >= _maxParallelTasks)
return;
Expand All @@ -411,7 +411,7 @@ private async Task QueueTaskAsync(PendingTask pendingTask, bool scheduleOnThread
try
{
bool alreadyRunning = false;
lock (_pendingTasks)
lock (_pendingTasksLock)
{
if (!_currentlyRunning.ContainsKey(key))
{
Expand Down

2 comments on commit efeffa5

@molinch
Copy link
Collaborator

@molinch molinch commented on efeffa5 Jun 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dammit, how did we miss that one

@daniel-luberda
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was unfortunate. I released 2.1.3 because of that :/

Please sign in to comment.