core: ensure claimed ports don't fall back to Generic (rh #597296)
Found by jklimes. If some plugin already supports this port, it's pointless to let Generic figure out if it supports the port since we're just going to hand it to the other plugin anyway.
This commit is contained in:
@@ -626,7 +626,7 @@ supports_callback (MMPlugin *plugin,
|
|||||||
if (next_plugin) {
|
if (next_plugin) {
|
||||||
const char *next_name = mm_plugin_get_name (next_plugin);
|
const char *next_name = mm_plugin_get_name (next_plugin);
|
||||||
|
|
||||||
if (info->best_plugin && strcmp (next_name, MM_PLUGIN_GENERIC_NAME))
|
if (info->best_plugin && !strcmp (next_name, MM_PLUGIN_GENERIC_NAME))
|
||||||
next_plugin = NULL;
|
next_plugin = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user