mirror of
https://github.com/fatedier/frp.git
synced 2025-07-28 05:40:32 +07:00
client: lint
This commit is contained in:
@ -185,11 +185,11 @@ func (ctl *Control) Close() error {
|
||||
return ctl.GracefulClose(0)
|
||||
}
|
||||
|
||||
func (ctl *Control) GracefulClose(t time.Duration) error {
|
||||
func (ctl *Control) GracefulClose(d time.Duration) error {
|
||||
ctl.pm.Close()
|
||||
ctl.vm.Close()
|
||||
|
||||
time.Sleep(t)
|
||||
time.Sleep(d)
|
||||
|
||||
ctl.conn.Close()
|
||||
if ctl.session != nil {
|
||||
|
Reference in New Issue
Block a user