Skip to content

Commit 48c2c50

Browse files
committed
enhance: do not start new auto-fetch action if the last one is still running (#2285)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 7744a82 commit 48c2c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ViewModels/Repository.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ private void AutoFetchByTimer(object sender)
18651865

18661866
private async Task AutoFetchOnUIThread()
18671867
{
1868-
if (_uiStates == null)
1868+
if (IsAutoFetching)
18691869
return;
18701870

18711871
CommandLog log = null;

0 commit comments

Comments
 (0)