Skip to content
Snippets Groups Projects
Commit 09356d96 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix error where a known id of a message without any services matching would...

Fix error where a known id of a message without any services matching would suppress garbled message processing
parent 64108828
No related branches found
No related tags found
2 merge requests!510Release,!253General Cleanup
......@@ -182,15 +182,14 @@ func (h *handler) handleMessageHelper(ecrMsg format.Message, bundle Bundle) bool
services, exists := h.get(
identity.Source, ecrMsg.GetSIH(), ecrMsg.GetContents())
if exists {
// If the id doesn't exist or there are no services for it, then
// we want messages to be reprocessed as garbled.
if exists && len(services) != 0 {
for _, t := range services {
jww.DEBUG.Printf("handleMessage service found: %s, %s",
ecrMsg.Digest(), t)
go t.Process(ecrMsg, identity, round)
}
if len(services) == 0 {
jww.WARN.Printf("Empty service list for %s", ecrMsg.Digest())
}
return true
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment