mirror of
https://github.com/ZeroDream-CN/SakuraFrp
synced 2024-11-21 15:00:45 +00:00
fix connection leak when login_fail_exit is false, fix #1335
This commit is contained in:
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
Block a user