graph-rework
noah metz 2023-06-04 14:15:26 -06:00
parent a34df43d35
commit cdc682f844
1 changed files with 1 additions and 1 deletions

@ -136,7 +136,7 @@ func AddChild(event Event, child Event, info EventInfo) error {
if child.Parent() != nil { if child.Parent() != nil {
child.UnlockParent() child.UnlockParent()
event.UnlockParent() event.UnlockParent()
return errors.New(fmt.Sprintf("Parent already registered: %s->%s already %s", child.Name(), event.Name(), event.Parent().Name())) return errors.New(fmt.Sprintf("Parent already registered: %s->%s already %s", child.Name(), event.Name(), child.Parent().Name()))
} }
event.LockChildren() event.LockChildren()