MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onStop

Method onStop

Tactility/Source/service/webserver/WebServerService.cpp:246–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void 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

Callers

nothing calls this directly

Calls 3

statusbar_icon_removeFunction · 0.85
unsubscribeMethod · 0.80
setEnabledFunction · 0.50

Tested by

no test coverage detected