From: José Bollo Date: Thu, 15 Feb 2018 15:50:31 +0000 (+0100) Subject: afb-context: Early token change X-Git-Tag: flounder_5.99.1~65 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6e7f3d28a2d08a8976fdd9c586b4cbddcaeb37bd;p=src%2Fapp-framework-binder.git afb-context: Early token change Change-Id: If27d84a702513b92f08c97ef91bf8cf89b5af238 Signed-off-by: José Bollo --- diff --git a/src/afb-context.c b/src/afb-context.c index c2649a48..3c0b82c1 100644 --- a/src/afb-context.c +++ b/src/afb-context.c @@ -148,6 +148,10 @@ void afb_context_refresh(struct afb_context *context) else { assert(context->validated); context->refreshing = 1; + if (!context->refreshed) { + afb_session_new_token (context->session); + context->refreshed = 1; + } } }