From 6e7f3d28a2d08a8976fdd9c586b4cbddcaeb37bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 15 Feb 2018 16:50:31 +0100 Subject: [PATCH] afb-context: Early token change MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: If27d84a702513b92f08c97ef91bf8cf89b5af238 Signed-off-by: José Bollo --- src/afb-context.c | 4 ++++ 1 file changed, 4 insertions(+) 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; + } } } -- 2.16.6