mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
daemon: fix crash exiting with ^C
We need to stop the p2p layer, which causes the rest to shutdown gracefully. Hitting ^C was still going through another path.
This commit is contained in:
parent
3a4db6346b
commit
fefc0b5556
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ bool t_daemon::run(bool interactive)
|
||||||
{
|
{
|
||||||
throw std::runtime_error{"Can't run stopped daemon"};
|
throw std::runtime_error{"Can't run stopped daemon"};
|
||||||
}
|
}
|
||||||
tools::signal_handler::install(std::bind(&daemonize::t_daemon::stop, this));
|
tools::signal_handler::install(std::bind(&daemonize::t_daemon::stop_p2p, this));
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue