Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lagrange.Core/Internal/Context/CacheContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task<List<BotFriendCategory>> GetCategories(bool refresh = false)

if (friend == null)
{
_friends = Interlocked.Exchange(ref _friends, await FetchFriends());
Interlocked.Exchange(ref _friends, await FetchFriends());
friend = _friends?.FirstOrDefault(f => f.Uin == uin);
}

Expand All @@ -87,7 +87,7 @@ public async Task<List<BotFriendCategory>> GetCategories(bool refresh = false)

if (group == null)
{
_groups = Interlocked.Exchange(ref _groups, await FetchGroups());
Interlocked.Exchange(ref _groups, await FetchGroups());
group = _groups?.FirstOrDefault(f => f.GroupUin == groupUin);
}

Expand Down
Loading