Skip to content

Commit d62b8ed

Browse files
Fix exception being thrown when the project being observed is the one canceled
1 parent cc32409 commit d62b8ed

File tree

1 file changed

+1
-2
lines changed
  • src/toolkit/Community.VisualStudio.Toolkit.Shared/Build

1 file changed

+1
-2
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/Build/Build.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ public int UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg
173173
{
174174
_result.SetCanceled();
175175
}
176-
177176
// We are observing the build of a specific project. If the project
178177
// that finished is the one we are observing, then we can set the result.
179-
if (pHierProj == _hierarchy)
178+
else if (pHierProj == _hierarchy)
180179
{
181180
_result.SetResult(fSuccess != 0);
182181
}

0 commit comments

Comments
 (0)