mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
Set the session correctly on the service
This commit is contained in:
parent
76ae17b24f
commit
a05725fd18
@ -385,8 +385,8 @@ on_service_open_session_aes (GObject *source,
|
||||
if (response_open_session_aes (closure->session, response)) {
|
||||
|
||||
/* Set value atomically, in case of race condition */
|
||||
if (!g_atomic_pointer_compare_and_exchange (&(self->pv->session),
|
||||
NULL, closure->session))
|
||||
if (g_atomic_pointer_compare_and_exchange (&(self->pv->session),
|
||||
NULL, closure->session))
|
||||
closure->session = NULL; /* Service takes ownership */
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user