mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Bump stop timeout (#1797)
This commit is contained in:
parent
c3dc52ce90
commit
8c9c95bca8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user