Set the session correctly on the service

This commit is contained in:
Stef Walter 2011-11-06 08:59:48 +01:00 committed by Stef Walter
parent 76ae17b24f
commit a05725fd18

View File

@ -385,7 +385,7 @@ 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),
if (g_atomic_pointer_compare_and_exchange (&(self->pv->session),
NULL, closure->session))
closure->session = NULL; /* Service takes ownership */