diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-02-15 16:50:31 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-02-15 17:23:33 +0100 |
commit | 6e7f3d28a2d08a8976fdd9c586b4cbddcaeb37bd (patch) | |
tree | d0867ad53c8312d0373ed47ff9edc95afd129f06 | |
parent | 96ee1e30743b88780cc9dc975745d8dc03de25ae (diff) |
afb-context: Early token change
Change-Id: If27d84a702513b92f08c97ef91bf8cf89b5af238
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-context.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; + } } } |