Skip to content

Commit

Permalink
unsubscribe too
Browse files Browse the repository at this point in the history
  • Loading branch information
RicYaben committed Nov 15, 2024
1 parent 5cc4115 commit 12b4c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mqtt/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (s *scan) makeMessageHandler() func(c paho.Client, m paho.Message) {
topic := m.Topic()
if isFull(topic) {
// unsubscribe and ignore the message
//c.Unsubscribe(topic)
c.Unsubscribe(topic)
return
}

Expand Down

0 comments on commit 12b4c52

Please sign in to comment.