Context
- Relocated Hooks::onLaunch call from the end of ::initialize to the beginning of ::run. - Added a TDB2::commit between ::dispatch and Hooks::onExit.
This commit is contained in:
@@ -205,7 +205,6 @@ int Context::initialize (int argc, const char** argv)
|
||||
|
||||
// First opportunity to run a hook script.
|
||||
hooks.initialize ();
|
||||
hooks.onLaunch ();
|
||||
}
|
||||
|
||||
catch (const std::string& message)
|
||||
@@ -283,8 +282,10 @@ int Context::run ()
|
||||
|
||||
try
|
||||
{
|
||||
hooks.onLaunch ();
|
||||
rc = dispatch (output);
|
||||
hooks.onExit ();
|
||||
tdb2.commit (); // Harmless if called when nothing changed.
|
||||
hooks.onExit (); // No chance to update data.
|
||||
|
||||
std::stringstream s;
|
||||
s << "Perf "
|
||||
|
||||
Reference in New Issue
Block a user