From e9e8ae977b9880de47ee3f0988fd69b00d531cf6 Mon Sep 17 00:00:00 2001 From: Derek Duncan Date: Tue, 25 Apr 2023 11:04:31 -0500 Subject: [PATCH] Change onWill topic to be correct OnWill topic --- pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubsub.go b/pubsub.go index 2491779..038249c 100644 --- a/pubsub.go +++ b/pubsub.go @@ -240,7 +240,7 @@ func (pmh *PubsubMessagingHook) OnWillSent(cl *mqtt.Client, pk packets.Packet) { return } - if err := publish(pmh.publishTopic, OnWillSentMessage{ + if err := publish(pmh.willTopic, OnWillSentMessage{ ClientID: cl.ID, Topic: pk.TopicName, Payload: pk.Payload,