diff --git a/app/server/src/main/scala/org/bitcoins/server/NodeRoutes.scala b/app/server/src/main/scala/org/bitcoins/server/NodeRoutes.scala index 26d3e89e6a..5d2ed16d72 100644 --- a/app/server/src/main/scala/org/bitcoins/server/NodeRoutes.scala +++ b/app/server/src/main/scala/org/bitcoins/server/NodeRoutes.scala @@ -24,13 +24,7 @@ case class NodeRoutes(node: Node)(implicit system: ActorSystem) Server.httpSuccess("Node shutting down") } - val shutdownRunnable = new Runnable { - override def run(): Unit = { - sys.exit() - } - } - - system.scheduler.scheduleOnce(3.seconds, shutdownRunnable) + system.scheduler.scheduleOnce(7.seconds)(sys.exit()) nodeStopping }