fix(core): ignore duplicate messages
This commit is contained in:
parent
0633d0a817
commit
fa8ed6da10
1 changed files with 5 additions and 0 deletions
|
@ -384,6 +384,11 @@ export class SessionConnection extends PersistentConnection {
|
|||
return
|
||||
}
|
||||
|
||||
if (this._recentIncomingMsgIds.has(messageId)) {
|
||||
this.log.warn('warn: ignoring duplicate message %s', messageId)
|
||||
return
|
||||
}
|
||||
|
||||
this.log.verbose('received %s (msg_id: %s)', message._, messageId)
|
||||
this._recentIncomingMsgIds.add(messageId)
|
||||
|
||||
|
|
Loading…
Reference in a new issue