Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 27006b7

Browse files
committed
Touching the cache must be on the main thread
1 parent fdd650f commit 27006b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ public Repository(NPath localPath, ICacheContainer container)
6464

6565
cacheContainer = container;
6666
cacheContainer.CacheInvalidated += CacheHasBeenInvalidated;
67-
cacheContainer.CacheUpdated += (cacheType, offset) => cacheUpdateEvents[cacheType](new CacheUpdateEvent(cacheType, offset));
67+
cacheContainer.CacheUpdated += (cacheType, offset) =>
68+
{
69+
cacheUpdateEvents[cacheType](new CacheUpdateEvent(cacheType, offset));
70+
};
6871
}
6972

7073
public void Initialize(IRepositoryManager repositoryManager, ITaskManager taskManager)

0 commit comments

Comments
 (0)