Skip to content

Commit

Permalink
fix(settings): fix the bug of update rmi & mysql addr settings not wo…
Browse files Browse the repository at this point in the history
…rking (#49)
  • Loading branch information
Li4n0 committed Jan 5, 2022
1 parent 58e07fe commit 06ae3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/rmi/rmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 06ae3d0

Please sign in to comment.