From adfe264b67ba28effd3fb8378cbcbe2081f6ed49 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 22 Jun 2010 01:58:54 -0700 Subject: 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. --- src/mm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-manager.c b/src/mm-manager.c index 32b0d2a8..9b4c6d6e 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -626,7 +626,7 @@ supports_callback (MMPlugin *plugin, if (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; } -- cgit v1.2.3-70-g09d2