Redesign stoppable object pattern

This commit is contained in:
John Freeman
2021-05-26 17:45:41 -05:00
committed by manojsdoshi
parent c10c0be11b
commit a2a37a928a
92 changed files with 781 additions and 2460 deletions

View File

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