equal
deleted
inserted
replaced
73 |
73 |
74 // Check if the plugin has already been added, if so then this is an error in configuration (something is trying to add the same plugin twice) |
74 // Check if the plugin has already been added, if so then this is an error in configuration (something is trying to add the same plugin twice) |
75 CGOomRunPluginConfig** runPluginConfig = iPluginToConfigMapping.Find(aPluginConfig->Id()); |
75 CGOomRunPluginConfig** runPluginConfig = iPluginToConfigMapping.Find(aPluginConfig->Id()); |
76 if (runPluginConfig) |
76 if (runPluginConfig) |
77 { |
77 { |
78 //GOomMonitorPanic(KPluginConfigAddedTwice); |
78 GOomMonitorPanic(KPluginConfigAddedTwice); |
79 while((*runPluginConfig)->iNextConfig != NULL) |
|
80 *runPluginConfig = (*runPluginConfig)->iNextConfig; |
|
81 |
|
82 (*runPluginConfig)->iNextConfig = aPluginConfig; |
|
83 return; |
|
84 } |
79 } |
85 |
80 |
86 iPluginToConfigMapping.InsertL(aPluginConfig->Id(), aPluginConfig); |
81 iPluginToConfigMapping.InsertL(aPluginConfig->Id(), aPluginConfig); |
87 |
82 |
88 } |
83 } |