Skip to content

Commit

Permalink
Added endInvoke
Browse files Browse the repository at this point in the history
  • Loading branch information
ugras-ergun-sonarsource committed Nov 15, 2023
1 parent bce3041 commit 33402ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Core/GitEventsMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ private void WatchGitEvents(string repoFolder, IFileSystemWatcherFactory fileSys

private void HeadFileChanged(object sender, FileSystemEventArgs e)
{
HeadChanged?.BeginInvoke(this, EventArgs.Empty, null, null);
HeadChanged?.BeginInvoke(this, EventArgs.Empty, new AsyncCallback((IAsyncResult ar) =>
{
HeadChanged.EndInvoke(ar);
}), null);
}

public void Dispose()
Expand Down

0 comments on commit 33402ec

Please sign in to comment.