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:
Dan Williams
2010-06-22 01:58:54 -07:00
parent a60216f5f4
commit adfe264b67

View File

@@ -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;
} }