Closed ckfear closed 2 years ago
I submitted the pr #466 to fix the problem.
Thank you for your support.😄
Trying to use mqtt!.autoReconnect = false. Is it work?
It's ok.But I think external disconnection and internal disconnection should be different behaviours. And the parameter is_internal_disconnected should work.
@ckfear Yes. you are right. I misunderstood. Thank you for your contribution!
I call
mqtt.disconnect
,but it still reconnect.I found the variableis_internal_disconnected
is always true.And the automatic reconnection logic doesn't look right.
The above code makes the
is_internal_disconnected
variable meaningless.As I understand it, if I disconnect from the outside, it should not automatically reconnect.