diff options
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/router.go b/gateway/router.go index e62df205..99b34378 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -109,8 +109,8 @@ func (r *Router) handleReceive() { msgIDs = append(msgIDs, gw.handleMessage(msg, br)...) } // only add the message ID if it doesn't already exists - if _, ok := gw.Messages.Get(msg.ID); !ok && msg.ID != "" { - gw.Messages.Add(msg.ID, msgIDs) + if _, ok := gw.Messages.Get(msg.Protocol + " " + msg.ID); !ok && msg.ID != "" { + gw.Messages.Add(msg.Protocol+" "+msg.ID, msgIDs) } } } |