Skip to content

Commit

Permalink
Merge pull request #72 from HuolalaTech/fix/duplicate-warning
Browse files Browse the repository at this point in the history
Fix duplicate warning message
  • Loading branch information
wqcstrong authored Dec 6, 2023
2 parents 8b38aad + 0aaf0fe commit 52d1be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/socket-message/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 52d1be9

Please sign in to comment.