Skip to content

fix: honor end called from reconnect listeners - #2140

Open
Solarboaters wants to merge 1 commit into
mqttjs:mainfrom
Solarboaters:fix/end-during-reconnect
Open

Solarboaters wants to merge 1 commit into
mqttjs:mainfrom
Solarboaters:fix/end-during-reconnect

Conversation

@Solarboaters

Copy link
Copy Markdown

Fixes #2137.

Recheck disconnecting after emitting reconnect, so a listener calling end() can cancel the attempt before another connection is opened.

Added local TCP tests for automatic/manual reconnect with graceful/forced shutdown, plus ordinary reconnect controls. Original: four failures, two passes; fixed: all six pass. Node suite: 1,127 passed, six skipped; lint and TypeScript/browser builds pass. Browser runtime tests were not run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: end() called from a 'reconnect' listener still reconnects

1 participant