Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit ee3ccb0

Browse files
committed
System.InvalidOperationException: Collection was modified; enumeration operation may not execute. (Bug #282)
1 parent 9c46286 commit ee3ccb0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

project/core/util/BuildProgressInformation.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ public virtual void AddTaskInformation(string information)
8989

9090
public void UpdateStartupInformation(string information)
9191
{
92-
Progress[0] = new BuildProgressInformationData(information);
93-
94-
DoStartupInformationUpdated(information);
92+
lock (lockObject)
93+
{
94+
Progress[0] = new BuildProgressInformationData(information);
95+
DoStartupInformationUpdated(information);
96+
}
9597
}
9698

9799
/// <summary>

0 commit comments

Comments
 (0)