mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 16:41:53 +08:00
fix: fix panic when update config (#62)
This commit is contained in:
+2
-2
@@ -284,9 +284,9 @@ func (s *Server) Run() {
|
||||
defer func() {
|
||||
if s.Enable {
|
||||
log.Error("MySQL Server exited unexpectedly")
|
||||
s.Enable = false
|
||||
s.livingLock.Unlock()
|
||||
}
|
||||
s.Enable = false
|
||||
s.livingLock.Unlock()
|
||||
}()
|
||||
if err := s.UpdateRules(); err != nil {
|
||||
log.Error(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user