加固桌面运行时空状态与在途初始化取消边界

This commit is contained in:
xuans committed 2026-09-16 20:26:59 +08:00
1 parent a1d1b03db0
commit 5509a611f0
3 files changed
+54 -1

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ func Open(configPath, baseDir string) (*Runtime, error) {
func (r *Runtime) Handler() http.Handler {
return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
if r == nil {
if r == nil || r.ctx == nil {
http.Error(writer, "Scert 核心服务未初始化", http.StatusServiceUnavailable)
return
}