klawr / mqtt-inspector

MIT License
2 stars 1 forks source link

Reconnect not working #21

Open klawr opened 5 months ago

klawr commented 5 months ago

Describe the bug Seems like when connection is lost to the broker or the broker goes offline the disconnect is not properly detected and no attempt to reconnect is made.

To Reproduce

  1. Connect to broker
  2. Disconnect broker
  3. See that broker is still shown as detected. Event loop seems to be stopped, which is logged when trying to publish something
  4. Broker does not reconnect after 5 seconds as it should.

Expected behavior

  1. Disconnect should be visible in sidebar
  2. Broker should reconnect