CocoaMQTT icon indicating copy to clipboard operation
CocoaMQTT copied to clipboard

Auto-reconnect is attempted even when the mqtt session is manually terminated by the client.

Open BrentMifsud opened this issue 3 years ago • 1 comments

Here are some steps to reproduce:

  1. create a new CocoaMQTT instance
  2. enable autoreconnect
  3. connect to a broker
  4. trigger the CocoaMQTT.disconnect() method
  5. notice that the CocoaMqtt.connect() method is triggered shortly after.

Workaround I have been using:

  1. set autoreconnect to false
  2. call disconnect()

Not sure if this is intentional functionality or not.

BrentMifsud avatar Oct 07 '20 00:10 BrentMifsud

I'm also facing the same issue. Using the same workaround as yours.

nrlnishan avatar Nov 08 '21 10:11 nrlnishan