This commit makes the HTTP client initialization and propagation of
potential errors into the init-callback of the push notification
drivers, instead of deferring it to the message handling.
*context = dconfig;
settings_free(ox_settings);
+
+ if (!push_notification_driver_ox_init_global(user, name))
+ return -1;
+
return 0;
}
if (messagenew == NULL)
return;
- if (!push_notification_driver_ox_init_global(user))
- return;
-
http_req = http_client_request_url(
ox_global->http_client, "PUT", dconfig->http_url,
push_notification_driver_ox_http_callback, dconfig);