mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
update sdk
This commit is contained in:
parent
daaf1f28e1
commit
a3435c4c42
@ -46,12 +46,12 @@ var NowStatus int
|
|||||||
var CloseClient bool
|
var CloseClient bool
|
||||||
//start
|
//start
|
||||||
func (s *TRPClient) Start() {
|
func (s *TRPClient) Start() {
|
||||||
|
CloseClient = false
|
||||||
retry:
|
retry:
|
||||||
NowStatus = 0
|
|
||||||
if CloseClient {
|
if CloseClient {
|
||||||
CloseClient = false
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
NowStatus = 0
|
||||||
c, err := NewConn(s.bridgeConnType, s.vKey, s.svrAddr, common.WORK_MAIN, s.proxyUrl)
|
c, err := NewConn(s.bridgeConnType, s.vKey, s.svrAddr, common.WORK_MAIN, s.proxyUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Error("The connection server failed and will be reconnected in five seconds, error", err.Error())
|
logs.Error("The connection server failed and will be reconnected in five seconds, error", err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user