瀏覽代碼

Fix bug: add os.Exit(0) after stop handler to ensure quit.

zry 3 年之前
父節點
當前提交
6b00bae03e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      run.go

+ 1 - 0
run.go

@@ -121,6 +121,7 @@ func (zd *ZDaemon) webStop(ctx *gin.Context) {
 		time.Sleep(time.Second)
 		if zd.ipclistener != nil {
 			_ = zd.ipclistener.Close()
+			os.Exit(0)
 		}
 	}()
 }