eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

Fixed to avoid panic when keep alive is 1 #531. #622

Closed tomatod closed 1 year ago

tomatod commented 1 year ago

This request is related to #531. When client's keep alive is set 1 to, panic is caused.

I created a patch to fix the issue.

MattBrittan commented 1 year ago

Looks good to me - thanks for your pull request.