1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00
This commit is contained in:
Gerasimos Maropoulos
2016-08-17 20:16:23 +03:00
parent bef334868b
commit befa43ba2a
3 changed files with 11 additions and 14 deletions

View File

@@ -248,7 +248,8 @@ func (p *pluginContainer) Add(plugins ...Plugin) error {
}
// Activate the plugin, if no error then add it to the plugins
if pluginObj, ok := plugin.(pluginActivate); ok {
tempPluginContainer := *p
tempPluginContainer := *p // contains the mutex but we' re safe here.
err := pluginObj.Activate(&tempPluginContainer)
if err != nil {
return errPluginActivate.Format(pName, err.Error())