mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 00:21:54 +08:00
fix(settings): fix the bug of update rmi & mysql addr settings not working (#49)
This commit is contained in:
+1
-1
@@ -273,7 +273,7 @@ func (s *Server) Stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) Restart() {
|
func (s *Server) Restart() {
|
||||||
s.Enable = false
|
s.Stop()
|
||||||
time.Sleep(time.Second * 2)
|
time.Sleep(time.Second * 2)
|
||||||
go s.Run()
|
go s.Run()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -154,7 +154,7 @@ func (s *Server) Stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) Restart() {
|
func (s *Server) Restart() {
|
||||||
s.Enable = false
|
s.Stop()
|
||||||
time.Sleep(time.Second * 2)
|
time.Sleep(time.Second * 2)
|
||||||
go s.Run()
|
go s.Run()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user