Update service.go

This commit is contained in:
Akkariin Meiko 2020-01-19 06:35:50 +08:00 committed by GitHub
parent c1ca14230b
commit e85550c054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,7 +478,7 @@ func generateTLSConfig() *tls.Config {
} }
func (svr *Service) CloseUser(user string) error { func (svr *Service) CloseUser(user string) error {
ctl, ok := svr.ctlManager.GetById(user) ctl, ok := svr.ctlManager.SearchById(user)
if !ok { if !ok {
return fmt.Errorf("user not login") return fmt.Errorf("user not login")
} }