Skip to content

Commit

Permalink
fix: respect request timeout setting (ActivityWatch/activitywatch#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 15, 2023
1 parent 9600814 commit e05e805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export const useSettingsStore = defineStore('settings', {
}
this.$patch({ ...storage, _loaded: true });

// Since `requestTimeout` is used to initialize the client, we need to set it again
// https://github.com/ActivityWatch/activitywatch/issues/979
client.req.defaults.timeout = this.requestTimeout * 1000;

if (save) {
await this.save();
}
Expand Down

1 comment on commit e05e805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.