Browse Source

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

zry 3 năm trước cách đây
mục cha
commit
6b00bae03e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
 		}
 	}()
 }