Skip to content

Commit

Permalink
Fixed deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHurne committed Jun 29, 2015
1 parent e708021 commit 7a64791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GW2PAO/Modules/ZoneCompletion/ZoneCompletionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ private void RefreshZone(object state = null)
this.CharacterName = this.playerService.CharacterName;

var zoneItems = this.zoneService.GetZoneItems(this.playerService.MapId);
Threading.InvokeOnUI(() =>
lock (zoneItemsLock)
{
lock (zoneItemsLock)
Threading.InvokeOnUI(() =>
{
this.ZoneItems.Clear();
this.distanceCounters.Clear();
Expand All @@ -262,8 +262,8 @@ private void RefreshZone(object state = null)
this.distanceCounters.Add(item.ID, 0);
}
}
}
});
});
}

// Update the current zone name
var newZoneName = this.zoneService.GetZoneName(this.CurrentMapID);
Expand Down

0 comments on commit 7a64791

Please sign in to comment.