更新frpc
This commit is contained in:
parent
9d383a5b5b
commit
de3b19cbb2
@ -172,7 +172,9 @@ func (ctl *Control) Close() error {
|
|||||||
ctl.mu.Lock()
|
ctl.mu.Lock()
|
||||||
defer ctl.mu.Unlock()
|
defer ctl.mu.Unlock()
|
||||||
ctl.exit = true
|
ctl.exit = true
|
||||||
ctl.conn.Close()
|
if ctl.conn != nil {
|
||||||
|
ctl.conn.Close()
|
||||||
|
}
|
||||||
ctl.pm.CloseProxies()
|
ctl.pm.CloseProxies()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -119,6 +119,7 @@ func StopFrp() (err error) {
|
|||||||
|
|
||||||
service.Close()
|
service.Close()
|
||||||
log.Info("frpc is stoped")
|
log.Info("frpc is stoped")
|
||||||
|
os.Exit(0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user