mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 05:40:41 -04:00
Merge pull request #1168
10be903
Brackets to prevent premature return (NanoAkron)fb1785a
Brackets to ensure doesn't function prematurely return (NanoAkron)8ed0d72
Moved logging to target functions rather than caller (NanoAkron)442bfd1
Added messages at log level 2 to reflect deactivation procedure (NanoAkron)
This commit is contained in:
commit
fa1d5efb5a
6 changed files with 35 additions and 17 deletions
|
@ -69,12 +69,13 @@ public:
|
|||
|
||||
~t_protocol()
|
||||
{
|
||||
LOG_PRINT_L0("Deinitializing cryptonote_protocol...");
|
||||
LOG_PRINT_L0("Stopping cryptonote protocol...");
|
||||
try {
|
||||
m_protocol.deinit();
|
||||
m_protocol.set_p2p_endpoint(nullptr);
|
||||
LOG_PRINT_L0("Cryptonote protocol stopped successfully");
|
||||
} catch (...) {
|
||||
LOG_PRINT_L0("Failed to deinitialize protocol...");
|
||||
LOG_ERROR("Failed to stop cryptonote protocol!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue