Skip to content

Commit

Permalink
修改代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pangdogs committed Jun 21, 2024
1 parent f3ec23d commit 40a37ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ func (rt *RuntimeBehavior) init(ctx runtime.Context, opts RuntimeOptions) {
rt.hooksMap = make(map[uid.Id][3]event.Hook)
rt.processQueue = make(chan _Task, rt.opts.ProcessQueueCapacity)

rt.eventUpdate.Init(ctx.GetAutoRecover(), ctx.GetReportError(), event.EventRecursion_Disallow)
rt.eventLateUpdate.Init(ctx.GetAutoRecover(), ctx.GetReportError(), event.EventRecursion_Disallow)

runtime.UnsafeContext(ctx).SetFrame(rt.opts.Frame)
runtime.UnsafeContext(ctx).SetCallee(rt.opts.CompositeFace.Iface)

ctx.ActivateEvent(&rt.eventUpdate, event.EventRecursion_Disallow)
ctx.ActivateEvent(&rt.eventLateUpdate, event.EventRecursion_Disallow)

rt.changeRunningState(runtime.RunningState_Birth)

if rt.opts.AutoRun {
Expand Down

0 comments on commit 40a37ea

Please sign in to comment.