mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Stop tor binary when server is shutdown (#3543)
This commit is contained in:
parent
e08dc636a1
commit
bbd3cd2bc4
1 changed files with 7 additions and 0 deletions
|
@ -81,6 +81,13 @@ class BitcoinSServerMain(override val serverArgParser: ServerArgParser)(implicit
|
|||
_ <- walletConf.stop()
|
||||
_ <- nodeConf.stop()
|
||||
_ <- chainConf.stop()
|
||||
_ <- {
|
||||
if (torConf.enabled) {
|
||||
torConf.createClient.stopBinary()
|
||||
} else {
|
||||
Future.unit
|
||||
}
|
||||
}
|
||||
_ = logger.info(s"Stopped ${nodeConf.nodeType.shortName} node")
|
||||
_ <- system.terminate()
|
||||
} yield {
|
||||
|
|
Loading…
Add table
Reference in a new issue