From e85550c05484daeaa5df7e19cfa6417fd4903c47 Mon Sep 17 00:00:00 2001 From: Akkariin Meiko Date: Sun, 19 Jan 2020 06:35:50 +0800 Subject: [PATCH] Update service.go --- server/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/service.go b/server/service.go index 458f4f0..45a706f 100755 --- a/server/service.go +++ b/server/service.go @@ -478,7 +478,7 @@ func generateTLSConfig() *tls.Config { } func (svr *Service) CloseUser(user string) error { - ctl, ok := svr.ctlManager.GetById(user) + ctl, ok := svr.ctlManager.SearchById(user) if !ok { return fmt.Errorf("user not login") }