Browse Source

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

zry 3 years ago
parent
commit
6b00bae03e
1 changed files with 1 additions and 0 deletions
  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)
 		}
 	}()
 }