加固桌面运行时空状态与在途初始化取消边界
This commit is contained in:
1 parent
a1d1b03db0
commit
5509a611f0
3 files changed
+54
-1
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user