aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-04-20 11:19:57 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-20 11:19:57 +0200
commitb9c933ec613c19e602fc3df05912997baf744c04 (patch)
treeb1c7dfe77e2d9754811bc0c89f6d985140492338
parentdocs: add gautamsi as a contributor (#607) (diff)
downloadferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.tar.gz
ferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.tar.zst
ferdium-app-b9c933ec613c19e602fc3df05912997baf744c04.zip
Remove excess code form Franz's hibernate feature (#609)
-rw-r--r--src/stores/ServicesStore.js6
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) {