aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 23:56:02 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 23:56:02 +0000
commitfefc0b555634ae782b6b378fcd655ea1137a85da (patch)
treec1e602cc022e2073b61e72d699029aaadcd43a97 /src
parentMerge pull request #533 (diff)
downloadmonero-fefc0b555634ae782b6b378fcd655ea1137a85da.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.cpp2
1 files changed, 1 insertions, 1 deletions
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
{