diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 23:56:02 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 23:56:02 +0000 |
commit | fefc0b555634ae782b6b378fcd655ea1137a85da (patch) | |
tree | c1e602cc022e2073b61e72d699029aaadcd43a97 /src/daemon/daemon.cpp | |
parent | Merge pull request #533 (diff) | |
download | monero-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 '')
-rw-r--r-- | src/daemon/daemon.cpp | 2 |
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 { |