Merge branch 'fix-hang' into 'master'

service: Fix secret_service_ensure_session_finish error propagation

See merge request GNOME/libsecret!36
This commit is contained in:
Daiki Ueno 2019-09-05 17:57:28 +00:00
commit 75db38cdcd

View File

@ -1321,13 +1321,12 @@ secret_service_ensure_session_finish (SecretService *self,
{
g_return_val_if_fail (SECRET_IS_SERVICE (self), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
if (!g_task_is_valid (result, self)) {
if (!g_task_propagate_boolean (G_TASK (result), error)) {
_secret_util_strip_remote_error (error);
return FALSE;
}
}
g_return_val_if_fail (self->pv->session != NULL, FALSE);
return TRUE;