| 244 | } |
| 245 | |
| 246 | void WebServerService::onStop(ServiceContext& service) { |
| 247 | g_webServerInstance.store(nullptr); |
| 248 | |
| 249 | pubsub->unsubscribe(settingsEventSubscription); |
| 250 | settingsEventSubscription = 0; |
| 251 | |
| 252 | setEnabled(false); |
| 253 | |
| 254 | // Remove statusbar icon |
| 255 | if (statusbarIconId >= 0) { |
| 256 | lvgl::statusbar_icon_remove(statusbarIconId); |
| 257 | statusbarIconId = -1; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | // region Enable/Disable |
| 262 |
nothing calls this directly
no test coverage detected