Add timer start param to Application (RIPD 1405):

Modify doStart Application method to specify whether or not to start the
DeadlineTimers. Specify inactive timers for jtx::Env Applications and
active timers for standard Applications.
This commit is contained in:
Mike Ellery
2017-02-16 09:56:41 -08:00
committed by Scott Schurr
parent 7265729446
commit 95aebfc38c
4 changed files with 19 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ Env::AppBundle::AppBundle(beast::unit_test::suite& suite,
Throw<std::runtime_error> ("Env::AppBundle: setup failed");
timeKeeper->set(
app->getLedgerMaster().getClosedLedger()->info().closeTime);
app->doStart();
app->doStart(false /*don't start timers*/);
thread = std::thread(
[&](){ app->run(); });