Skip to content

Commit

Permalink
await proxy auth
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jan 9, 2025
1 parent 28ed43c commit 06a3997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/db/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export const Cache = new class $Cache {
Zotero.Prefs.clear(del)
}

await Zotero.proxyAuthComplete()
await Zotero.proxyAuthComplete

this.db = await this.$open('open')
if (!this.db || !(await this.validate())) {
Expand Down
5 changes: 3 additions & 2 deletions test/behave
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ def cancel_proxy():
def main():
config = Configuration()
thread = None
thread = threading.Thread(target=cancel_proxy)
thread.start()
if platform.system() == 'Linux':
thread = threading.Thread(target=cancel_proxy)
thread.start()
sys.exit(run_behave(config, runner_class=InstallLastRunner))
if thread:
thread.join()
Expand Down

0 comments on commit 06a3997

Please sign in to comment.