summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-context.c4
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;
+ }
}
}