mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 07:29:24 -05: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
@ -114,7 +114,7 @@ bool t_daemon::run(bool interactive)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user