Skip to content

Commit 9722294

Browse files
committed
fix: Combine branch and commit refresh into a single thread
1 parent 1ee7d11 commit 9722294

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Models/Watcher.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ private void Tick(object sender)
120120
Task.Run(_repo.RefreshSubmodules);
121121
}
122122

123-
Task.Run(_repo.RefreshBranches);
124-
Task.Run(_repo.RefreshCommits);
123+
Task.Run(() =>
124+
{
125+
_repo.RefreshBranches();
126+
_repo.RefreshCommits();
127+
});
125128
Task.Run(_repo.RefreshWorkingCopyChanges);
126129
Task.Run(_repo.RefreshWorktrees);
127130
}

0 commit comments

Comments
 (0)