From 048a60baebc7fd224b5f66d6ab43511edaa09ec0 Mon Sep 17 00:00:00 2001 From: surenjun Date: Thu, 15 May 2025 16:55:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=B8=89=E4=BB=A3?= =?UTF-8?q?=E6=9C=BAudp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/UdpClientByCenter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/entry/src/main/ets/common/utils/UdpClientByCenter.ts b/entry/src/main/ets/common/utils/UdpClientByCenter.ts index 687fc80f..a254069f 100644 --- a/entry/src/main/ets/common/utils/UdpClientByCenter.ts +++ b/entry/src/main/ets/common/utils/UdpClientByCenter.ts @@ -312,6 +312,7 @@ export default class UdpClientByCenter { if (terType == 2) { //三型机 this.onMessage_1Callback = callback; + this.udp && this.udp.off('message', this.message_1Fn); this.udp && this.udp.on('message', this.message_1Fn); } else { this.retClass.receiveMsg(callback)