From d8404b53cd5c9fcc00b9c6d6510aa925c0919deb Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Fri, 11 Sep 2009 11:13:58 +0200 Subject: Fixed geting results from reporters --- src/Daemon/MiddleWare.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp index e3b6869..d18f6ab 100644 --- a/src/Daemon/MiddleWare.cpp +++ b/src/Daemon/MiddleWare.cpp @@ -353,14 +353,13 @@ report_status_t Report(const map_crash_report_t& pCrashReport, std::string pluginName = it_r->first; try { - std::string res; - if (g_pPluginManager->GetPluginType(pluginName) == REPORTER) { CReporter* reporter = g_pPluginManager->GetReporter(pluginName); std::string home = ""; map_plugin_settings_t oldSettings; map_plugin_settings_t newSettings; + std::string res; if (pUID != "") { @@ -382,10 +381,11 @@ report_status_t Report(const map_crash_report_t& pCrashReport, { reporter->SetSettings(oldSettings); } + + ret[pluginName].push_back("1"); + ret[pluginName].push_back(res); + message += res + "\n"; } - ret[pluginName].push_back("1"); - ret[pluginName].push_back(res); - message += res + "\n"; } catch (CABRTException& e) { -- cgit