From 34a407238438f5062cfc5774c375445a730850ec Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 20 Jan 2022 07:56:40 -0800 Subject: [PATCH] fix(restart): Removing code the auto-restarts app after 2 hours --- bin/server.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/server.js b/bin/server.js index d6966a4..4ff8fda 100644 --- a/bin/server.js +++ b/bin/server.js @@ -98,13 +98,6 @@ class Server { await controllers.attachControllers(app) } - // ipfs-coord has a memory leak. This app shuts down after 4 hours. It - // expects to be run by Docker or pm2, which can automatically restart - // the app. - setTimeout(function () { - process.exit(0) - }, 60000 * 60 * 2) // 2 hours - return app } catch (err) { console.error('Could not start server. Error: ', err)