From fefc0b555634ae782b6b378fcd655ea1137a85da Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 13 Dec 2015 23:56:02 +0000 Subject: [PATCH] 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(-) diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index 6a5943c8..8a1f08c1 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 {