fix: frpc reconnect frps frequently lead to memory leak (#1722)

This commit is contained in:
Tank
2020-04-02 10:58:37 +08:00
committed by GitHub
parent ffb932390f
commit caa6e8cf01
4 changed files with 63 additions and 8 deletions

View File

@ -183,6 +183,7 @@ func (ctl *Control) HandleNewProxyResp(inMsg *msg.NewProxyResp) {
func (ctl *Control) Close() error {
ctl.pm.Close()
ctl.conn.Close()
ctl.vm.Close()
if ctl.session != nil {
ctl.session.Close()
}