diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2021-02-04 01:55:03 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2021-02-04 01:56:23 +0300 |
commit | 07edce9404cebf9a7180d7b450f0b50a5255cae2 (patch) | |
tree | c2ced05b6dcb3cd5b5b6f328e1fdad497e8fb855 /telepathy-glib/account-request.c | |
parent | 9c6c6fb5203d8cb73064a02cc6b147aa91908952 (diff) | |
parent | 8300e7f45ca0696f8e3a1d585155136c263c38e4 (diff) | |
download | telepathy-glib-master.tar.gz |
Diffstat (limited to 'telepathy-glib/account-request.c')
-rw-r--r-- | telepathy-glib/account-request.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/telepathy-glib/account-request.c b/telepathy-glib/account-request.c index 4b79b1b49..e1afdc922 100644 --- a/telepathy-glib/account-request.c +++ b/telepathy-glib/account-request.c @@ -1340,9 +1340,13 @@ tp_account_request_create_account_async (TpAccountRequest *self, GAsyncReadyCallback callback, gpointer user_data) { + TpAccountRequestPrivate *priv = self->priv; + g_return_if_fail (TP_IS_ACCOUNT_REQUEST (self)); - if (self->priv->result != NULL) + priv = self->priv; + + if (priv->result != NULL) { g_simple_async_report_error_in_idle (G_OBJECT (self), callback, user_data, @@ -1352,7 +1356,7 @@ tp_account_request_create_account_async (TpAccountRequest *self, return; } - if (self->priv->created) + if (priv->created) { g_simple_async_report_error_in_idle (G_OBJECT (self), callback, user_data, @@ -1361,12 +1365,12 @@ tp_account_request_create_account_async (TpAccountRequest *self, return; } - self->priv->result = g_simple_async_result_new (G_OBJECT (self), callback, - user_data, tp_account_request_create_account_async); + priv->result = g_simple_async_result_new (G_OBJECT (self), callback, user_data, + tp_account_request_create_account_async); - tp_cli_account_manager_call_create_account (self->priv->account_manager, - -1, self->priv->cm_name, self->priv->proto_name, self->priv->display_name, - self->priv->parameters, self->priv->properties, + tp_cli_account_manager_call_create_account (priv->account_manager, + -1, priv->cm_name, priv->proto_name, priv->display_name, + priv->parameters, priv->properties, tp_account_request_create_account_cb, NULL, NULL, G_OBJECT (self)); } |