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 | |
| parent | 3a4db6346b2b1b4c3e3733d833f338d104f7da95 (diff) | |
| download | monzero-core-fefc0b555634ae782b6b378fcd655ea1137a85da.tar.gz monzero-core-fefc0b555634ae782b6b378fcd655ea1137a85da.tar.xz monzero-core-fefc0b555634ae782b6b378fcd655ea1137a85da.zip | |
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.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 { |
