Merge pull request #1171

6390673 Removed all code related to fast_exit (NanoAkron)
This commit is contained in:
Riccardo Spagni
2016-10-04 11:41:41 +02:00
12 changed files with 2 additions and 104 deletions
+1 -16
View File
@@ -434,23 +434,10 @@ namespace cryptonote
{
m_miner.stop();
m_mempool.deinit();
if (!m_fast_exit)
{
m_blockchain_storage.deinit();
}
m_blockchain_storage.deinit();
unlock_db_directory();
return true;
}
//-----------------------------------------------------------------------------------------------
void core::set_fast_exit()
{
m_fast_exit = true;
}
//-----------------------------------------------------------------------------------------------
bool core::get_fast_exit()
{
return m_fast_exit;
}
//-----------------------------------------------------------------------------------------------
void core::test_drop_download()
{
@@ -986,6 +973,4 @@ namespace cryptonote
{
raise(SIGTERM);
}
std::atomic<bool> core::m_fast_exit(false);
}