Browse Source

update sdk

刘河 5 years ago
parent
commit
a3435c4c42
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/client.go

+ 2 - 2
client/client.go

@@ -46,12 +46,12 @@ var NowStatus int
 var CloseClient bool
 //start
 func (s *TRPClient) Start() {
+	CloseClient = false
 retry:
-	NowStatus = 0
 	if CloseClient {
-		CloseClient = false
 		return
 	}
+	NowStatus = 0
 	c, err := NewConn(s.bridgeConnType, s.vKey, s.svrAddr, common.WORK_MAIN, s.proxyUrl)
 	if err != nil {
 		logs.Error("The connection server failed and will be reconnected in five seconds, error", err.Error())