mirror of https://github.com/fatedier/frp
fix connection leak when login_fail_exit is false, fix #1335
parent
6b089858db
commit
5680a88267
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue