fix connection leak when login_fail_exit is false, fix #1335

This commit is contained in:
fatedier 2019-07-31 00:50:38 +08:00
parent 6b089858db
commit 5680a88267

View File

@ -86,6 +86,8 @@ func (svr *Service) Run() error {
if g.GlbClientCfg.LoginFailExit { if g.GlbClientCfg.LoginFailExit {
return err return err
} else { } else {
conn.Close()
session.Close()
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
} }
} else { } else {