Skip to content

Commit db9fff7

Browse files
fix: Turtle.set_PathAttribute concurrency fix ( Fixes #57 )
Copying dictionary into new empty dictionary to avoid modification
1 parent 6c650fe commit db9fff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Types/Turtle/set_PathAttribute.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $PathAttribute = [Ordered]@{}
44
)
55

66
if (-not $this.'.PathAttribute') {
7-
$this | Add-Member -MemberType NoteProperty -Name '.PathAttribute' -Value $PathAttribute -Force
7+
$this | Add-Member -MemberType NoteProperty -Name '.PathAttribute' -Value ([Ordered]@{}) -Force
88
}
99
foreach ($key in $PathAttribute.Keys) {
1010
$this.'.PathAttribute'[$key] = $PathAttribute[$key]

0 commit comments

Comments
 (0)