Skip to content

fix: ensure we only disconnect the correct client

Because we may receive the :EXIT on the :emqtt process (and have started to reconnect) before we get the error response from the spawned process, we need the spawn response to include the original pid. If the client has changed (no longer the client), then we should ignore it (to avoid killing the wrong process)

Merge request reports

Loading