client: lint

This commit is contained in:
fatedier
2021-10-19 15:02:45 +08:00
parent 1d26ea440b
commit f1a51eba18
3 changed files with 9 additions and 9 deletions

View File

@ -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 {