未验证 提交 59f570ee 编写于 作者: K Kevin Pilch 提交者: GitHub

Merge pull request #25281 from tmeschter/RemoveProblematicNFW

Remove NFW causing delays
......@@ -1220,8 +1220,14 @@ public virtual void Disconnect()
if (_projectsReferencingMe.Count > 0)
{
FatalError.ReportWithoutCrash(new Exception("We still have projects referencing us. That's not expected."));
// We shouldn't be able to get here, but for reasons we don't entirely
// understand we sometimes do. We've long assumed that by the time a project is
// disconnected, all references to that project have been removed. However, it
// appears that this isn't always true when closing a solution (which includes
// reloading the solution, or opening a different solution) or when reloading a
// project that has changed on disk, or when deleting a project from a
// solution.
// Clear just so we don't cause a leak
_projectsReferencingMe.Clear();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册