Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLNA-RUI
gupnp
Commits
e914903d
Commit
e914903d
authored
Aug 18, 2013
by
Jens Georg
Browse files
Call action callback through idle on error
https://bugzilla.gnome.org/show_bug.cgi?id=669729
parent
00a73ff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
libgupnp/gupnp-service-proxy.c
View file @
e914903d
...
...
@@ -970,6 +970,16 @@ write_in_parameter (const char *arg_name,
xml_util_end_element
(
msg_str
,
arg_name
);
}
static
gboolean
action_error_idle_cb
(
gpointer
user_data
)
{
GUPnPServiceProxyAction
*
action
=
(
GUPnPServiceProxyAction
*
)
user_data
;
action
->
callback
(
action
->
proxy
,
action
,
action
->
user_data
);
return
FALSE
;
}
/**
* gupnp_service_proxy_begin_action_valist:
* @proxy: A #GUPnPServiceProxy
...
...
@@ -1057,7 +1067,7 @@ gupnp_service_proxy_begin_action_list
ret
=
begin_action_msg
(
proxy
,
action
,
callback
,
user_data
);
if
(
ret
->
error
)
{
callback
(
proxy
,
ret
,
user_data
);
g_idle_add
(
action_error_idle_cb
,
ret
);
return
ret
;
}
...
...
@@ -1115,7 +1125,7 @@ gupnp_service_proxy_begin_action_hash
ret
=
begin_action_msg
(
proxy
,
action
,
callback
,
user_data
);
if
(
ret
->
error
)
{
callback
(
proxy
,
ret
,
user_data
);
g_idle_add
(
action_error_idle_cb
,
ret
);
return
ret
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment