Browse Source

Merge branch 'master' of https://gitee.com/lingxinmeng/cicv-data-closedloop

LingxinMeng 6 months ago
parent
commit
0b5f789f89
1 changed files with 1 additions and 0 deletions
  1. 1 0
      aarch64/pjibot_guide/control/pkg/judge_local.go

+ 1 - 0
aarch64/pjibot_guide/control/pkg/judge_local.go

@@ -12,6 +12,7 @@ import (
 // running 繁忙状态,此状态机器人不接受新任务
 // error 错误状态(硬件,不能正常工作的)
 func GetLocalStatus(localStatus *string, lastLocalStatus *string, turnLength int) {
+	defer config.WsConn.Close()
 	// 轮询本地任务状态
 	for {
 		time.Sleep(time.Duration(turnLength) * time.Second)