Fix cache/v2ray/clashapi not call post start issue

This commit is contained in:
Wei Li 2024-11-11 15:14:03 +08:00
parent e3ffffc645
commit 49988d69c6

6
box.go
View File

@ -371,6 +371,12 @@ func (s *Box) start() error {
return err
}
}
for _, lifecycleService := range s.services {
err = lifecycleService.Start(adapter.StartStateStarted)
if err != nil {
return E.Cause(err, "start state started", lifecycleService.Name())
}
}
return nil
}