fix(settings): fix the bug of update rmi & mysql addr settings not working (#49)

This commit is contained in:
Li4n0
2022-01-05 23:17:12 +08:00
committed by GitHub
parent 58e07fe4aa
commit 06ae3d0555
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ func (s *Server) Stop() {
}
func (s *Server) Restart() {
s.Enable = false
s.Stop()
time.Sleep(time.Second * 2)
go s.Run()
}
+1 -1
View File
@@ -154,7 +154,7 @@ func (s *Server) Stop() {
}
func (s *Server) Restart() {
s.Enable = false
s.Stop()
time.Sleep(time.Second * 2)
go s.Run()
}