__connman_notifier_service_remove(service);
service_schedule_removed(service);
+ __connman_wispr_stop(service);
stats_stop(service);
service->path = NULL;
wp_context->wispr_portal->ipv6_context = NULL;
}
- if (wp_context->service != NULL)
- connman_service_unref(wp_context->service);
-
if (wp_context->token > 0)
connman_proxy_lookup_cancel(wp_context->token);
if (wp_context == NULL)
return -ENOMEM;
- connman_service_ref(service);
-
wp_context->service = service;
wp_context->type = type;
wp_context->wispr_portal = wispr_portal;