Fixing client shutdown.

This commit is contained in:
clemahieu 2014-10-26 19:07:53 -05:00
commit 929f28f687
2 changed files with 10 additions and 1 deletions

View file

@ -2035,7 +2035,7 @@ void rai::client::stop ()
{
network.stop ();
bootstrap.stop ();
processor.stop ();
service.stop ();
}
void rai::processor::bootstrap (boost::asio::ip::tcp::endpoint const & endpoint_a, std::function <void ()> const & complete_action_a)

View file

@ -1,6 +1,15 @@
#include <gtest/gtest.h>
#include <rai/core/core.hpp>
TEST (client, stop)
{
rai::system system (24000, 1);
system.clients [0]->stop ();
system.processor.run ();
system.service->run ();
ASSERT_TRUE (true);
}
TEST (client, block_store_path_failure)
{
rai::client_init init;