Explorar el Código

fix connection leak when login_fail_exit is false, fix #1335

fatedier hace 5 años
padre
commit
5680a88267
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 {