]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugin_mgr.cpp
Ticket. The stgTime argument added in TariffChangeIsAllowed()
[stg.git] / projects / stargazer / plugin_mgr.cpp
index 10911b97e2995759736e2a663efcbe1cc12bed9f..85215c7bae0f8fa43dd7371401e2adb28656eafc 100644 (file)
@@ -59,8 +59,8 @@ PluginManager::PluginManager(const SETTINGS_IMPL& settings,
     const std::vector<MODULE_SETTINGS> & modSettings(settings.GetModulesSettings());
     for (size_t i = 0; i < modSettings.size(); i++)
     {
-        std::string modulePath = basePath + "/mod_" + modSettings[i].moduleName + ".so";
         std::string moduleName = modSettings[i].moduleName;
+        std::string modulePath = basePath + "/mod_" + moduleName + ".so";
         printfd(__FILE__, "Module: %s\n", modulePath.c_str());
         try
         {
@@ -120,6 +120,7 @@ void PluginManager::reload(const SETTINGS_IMPL& settings)
                     printfd(__FILE__, "Error reloading module '%s': '%s'\n", plugin.GetVersion().c_str(),
                                                                              plugin.GetStrError().c_str());
                 }
+                break;
             }
         }
     }