From fefc0b555634ae782b6b378fcd655ea1137a85da Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 13 Dec 2015 23:56:02 +0000 Subject: 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. --- src/daemon/daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index 6a5943c8b..8a1f08c10 100644 --- a/src/daemon/daemon.cpp +++ b/src/daemon/daemon.cpp @@ -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 { -- cgit v1.2.3