Skip to content

Commit e05e805

Browse files
committed
fix: respect request timeout setting (ActivityWatch/activitywatch#979)
1 parent 9600814 commit e05e805

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/stores/settings.ts

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export const useSettingsStore = defineStore('settings', {
120120
}
121121
this.$patch({ ...storage, _loaded: true });
122122

123+
// Since `requestTimeout` is used to initialize the client, we need to set it again
124+
// https://github.com/ActivityWatch/activitywatch/issues/979
125+
client.req.defaults.timeout = this.requestTimeout * 1000;
126+
123127
if (save) {
124128
await this.save();
125129
}

0 commit comments

Comments
 (0)