Skip to content

comm-mqtt: clear the "Waiting for MQTT server..." status when the server is already started - #276

Merged
alexrobin merged 2 commits into
masterfrom
bugfix/comm-mqtt/268-mqtt-service-status
Nov 12, 2026
Merged

alexrobin merged 2 commits into
masterfrom
bugfix/comm-mqtt/268-mqtt-service-status

Conversation

@tipatterson-dev

@tipatterson-dev tipatterson-dev commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Fixes a wrong status in the Admin UI: an MQTT service module showed "Waiting for MQTT server..." after it had started.

Closes #268. Part of #249.

Problem

AbstractMqttServiceModule.start() set the status after registerListener. When the MQTT Server is already started, registerListener starts the service and clears the status immediately. The status set after that call stayed until the MQTT Server restarted. This occurs each time a service module restarts while the MQTT Server runs.

Fix

  • Set the status before registerListener, so the start of the service clears it.
  • Module version 2.0.2. The module had no version line and inherited 2.0.1.

Testing

  • New TestAbstractMqttServiceModule (the module had no tests):
    • no waiting status when the MQTT Server is already started
    • no waiting status after a restart of the service
    • the waiting status shows while the MQTT Server is stopped, and clears when it starts

Independent of the csapi-mqtt stack and of #262. It merges cleanly with master.

@tipatterson-dev tipatterson-dev added the bug Something isn't working label Nov 12, 2026
@tipatterson-dev tipatterson-dev self-assigned this Nov 12, 2026
@alexrobin
alexrobin merged commit 175ec27 into master Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

comm-mqtt: MQTT service shows "Waiting for MQTT server..." after it has started

2 participants