Skip to content

Commit

Permalink
Fix possibly using expired access tokens now that client is not being…
Browse files Browse the repository at this point in the history
… reloaded every plugin invocation
  • Loading branch information
MoojMidge committed May 3, 2024
1 parent bd1ad27 commit ee24e7c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def run(self, provider, context):
context.wakeup()
ui.clear_property(SLEEPING)

if context.get_access_manager().is_access_token_expired():
provider.reset_client()

if ui.get_property(CHECK_SETTINGS):
provider.reset_client()
settings = context.get_settings(flush=True)
Expand Down

0 comments on commit ee24e7c

Please sign in to comment.