소스 검색

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)
 		}
 	}()
 }