Skip to content

Commit

Permalink
vcsim: avoid ViewManager.ModifyListView race
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Jul 31, 2020
1 parent 156b1cb commit 9cca13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/view_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ type ListView struct {
}

func (v *ListView) update() {
Map.Update(v, []types.PropertyChange{{Name: "view", Val: v.View}})
Map.Update(v.Self, []types.PropertyChange{{Name: "view", Val: v.View}})
}

func (v *ListView) add(refs []types.ManagedObjectReference) *types.ManagedObjectNotFound {
Expand Down

0 comments on commit 9cca13a

Please sign in to comment.