From 0aaf0fefe98d2b9865f3764b35b40c594cd6793e Mon Sep 17 00:00:00 2001 From: Blucas <15555602203@163.com> Date: Wed, 6 Dec 2023 09:12:42 +0800 Subject: [PATCH] fix duplicate warning message --- src/store/socket-message/socket.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/socket-message/socket.ts b/src/store/socket-message/socket.ts index c0212a36..6d4d4e49 100644 --- a/src/store/socket-message/socket.ts +++ b/src/store/socket-message/socket.ts @@ -289,10 +289,12 @@ export class SocketStore extends EventTarget { unicastMessage(data: any) { if (!this.clientConnection) { + message.destroy(); message.warning(getTranslation('socket.client-not-found')); return; } if (!this.socket) { + message.destroy(); message.error(getTranslation('socket.debug-offline')); return; }