fix: fix panic when update config (#62)

This commit is contained in:
Li4n0
2022-09-24 16:35:28 +08:00
committed by GitHub
parent ca911b6aa6
commit 48f55c5327
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -359,9 +359,9 @@ func (s *Server) Run() {
defer func() {
if s.Enable {
log.Error("FTP Server exited unexpectedly")
s.Enable = false
s.livingLock.Unlock()
}
s.Enable = false
s.livingLock.Unlock()
}()
if err := s.UpdateRules(); err != nil {