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