Browse Source

fix connection leak when login_fail_exit is false, fix #1335

fatedier 5 years ago
parent
commit
5680a88267
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/service.go

+ 2 - 0
client/service.go

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