summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index aca8ecec..d09741fa 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -186,7 +186,9 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
fmt.Println(err)
}
// append the message ID (mID) from this bridge (dest) to our brMsgIDs slice
- brMsgIDs = append(brMsgIDs, &BrMsgID{dest, mID})
+ if mID != "" {
+ brMsgIDs = append(brMsgIDs, &BrMsgID{dest, mID})
+ }
}
return brMsgIDs
}