From cc112aeec7f59bb234e36af2b42206b9eeed400f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 13 May 2014 16:49:29 -0400 Subject: [PATCH] Context - Relocated the hooks.onExit call to a location where it can still influence output. --- src/Context.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 1f83d7169..7285a8e8a 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -296,6 +296,7 @@ int Context::run () try { rc = dispatch (output); + hooks.onExit (); std::stringstream s; s << "Perf " @@ -385,9 +386,7 @@ int Context::run () std::cerr << colorizeError (*e) << "\n"; else std::cerr << *e << "\n"; -/* - hooks.trigger ("on-exit"); -*/ + return rc; }