Skip to content

Commit

Permalink
Shutdown GitStatusCache before components it depends on
Browse files Browse the repository at this point in the history
Tweak the order that components are shutdown, to shutdown the
GitStatusCache before other components that it depends on. This is to
prevent problems that might arise from a component being disabled that
GitStatusCache depends on.
  • Loading branch information
jamill committed Aug 15, 2018
1 parent 8431ab2 commit 0c09ed4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GVFS/GVFS.Virtualization/FileSystemCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ public void Stop()
this.postFetchJobThread?.Abort();
}

this.fileSystemVirtualizer.PrepareToStop();
// Shutdown the GitStatusCache before other
// components that it depends on.
this.gitStatusCache.Shutdown();

this.fileSystemVirtualizer.PrepareToStop();
this.backgroundFileSystemTaskRunner.Shutdown();
this.GitIndexProjection.Shutdown();
this.BlobSizes.Shutdown();
Expand Down

0 comments on commit 0c09ed4

Please sign in to comment.