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)