fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

HOTFIX | Fixed pubMsg when WillTopic is null #193

Closed spit4520 closed 8 months ago

spit4520 commented 8 months ago

Runtime issue wasn't previously handled when the WillTopic was null, Go's compiler wouldn't care but it would throw a runtime error if there was no Last Will set. We should consider adding in a unit test system to properly catch this next time.

@chowyu12 can you please upstream this and tag a new release like v1.5.2 with the hot fix?