printers: Return after callback
Return from get_ppds_attribute_async() right after callback was called. Otherwise the callback could be called twice. (#683229)
This commit is contained in:
parent
dea424dbee
commit
c34e282bab
1 changed files with 4 additions and 1 deletions
|
@ -3188,7 +3188,10 @@ get_ppds_attribute_async (gchar **ppds_names,
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
if (!ppds_names || !attribute_name)
|
if (!ppds_names || !attribute_name)
|
||||||
callback (NULL, user_data);
|
{
|
||||||
|
callback (NULL, user_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
data = g_new0 (GPAData, 1);
|
data = g_new0 (GPAData, 1);
|
||||||
data->ppds_names = g_strdupv (ppds_names);
|
data->ppds_names = g_strdupv (ppds_names);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue