diff options
author | 2020-04-20 11:19:57 +0200 | |
---|---|---|
committer | 2020-04-20 11:19:57 +0200 | |
commit | b9c933ec613c19e602fc3df05912997baf744c04 (patch) | |
tree | b1c7dfe77e2d9754811bc0c89f6d985140492338 /src/stores | |
parent | docs: add gautamsi as a contributor (#607) (diff) | |
download | ferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.tar.gz ferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.tar.zst ferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.zip |
Remove excess code form Franz's hibernate feature (#609)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 80c7d7e81..b595c3543 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -155,12 +155,6 @@ export default class ServicesStore extends Store { | |||
155 | */ | 155 | */ |
156 | _serviceMaintenance() { | 156 | _serviceMaintenance() { |
157 | this.all.forEach((service) => { | 157 | this.all.forEach((service) => { |
158 | // Defines which services should be hibernated. | ||
159 | if (!service.isActive && (Date.now() - service.lastUsed > ms('5m'))) { | ||
160 | // If service is stale for 5 min, hibernate it. | ||
161 | this._hibernate({ serviceId: service.id }); | ||
162 | } | ||
163 | |||
164 | if (service.lastPoll && (service.lastPoll) - service.lastPollAnswer > ms('30s')) { | 158 | if (service.lastPoll && (service.lastPoll) - service.lastPollAnswer > ms('30s')) { |
165 | // If service did not reply for more than 30s try to reload. | 159 | // If service did not reply for more than 30s try to reload. |
166 | if (!service.isActive) { | 160 | if (!service.isActive) { |