From 1a114a9c44c839f166dec82d3b1ef4f6c2a32359 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Fri, 14 Jun 2024 11:37:15 +0800 Subject: [PATCH] =?UTF-8?q?[bug]12=E5=8F=B7=E7=BA=BF=E8=81=94=E9=94=81?= =?UTF-8?q?=E9=80=9A=E4=BF=A1=E6=9C=8D=E5=8A=A1TCP=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=90=8E=E5=86=8D=E6=AC=A1=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E4=BC=9A=E6=8F=90=E7=A4=BA=E4=BB=BB=E5=8A=A1=E5=B7=B2=E5=90=AF?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/interlock/beijing12/interlock.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third_party/interlock/beijing12/interlock.go b/third_party/interlock/beijing12/interlock.go index a532a78..70694f0 100644 --- a/third_party/interlock/beijing12/interlock.go +++ b/third_party/interlock/beijing12/interlock.go @@ -69,12 +69,11 @@ func (i *interlockProxy) Start(manager InterlockMessageManager) { if i.manager != nil { panic(fmt.Sprintf("%s启动联锁消息服务错误: 存在正在运行的任务", logTag)) } - i.manager = manager - // 初始化客户端、服务端 i.initInterlockProxy() ctx, cancel := context.WithCancel(context.Background()) go i.collectInfoStateTask(ctx) i.collectInfoTaskCancel = cancel + i.manager = manager } // 采集电路状态发送间隔,单位ms