plugin-manager: cancelled tasks are no longer deferred-until-suggested

The deferred-until-suggested tasks specify tasks that are open/ongoing;
cancelled tasks shouldn't have this flag set.

https://bugzilla.gnome.org/show_bug.cgi?id=694603
This commit is contained in:
Aleksander Morgado
2013-02-25 12:04:23 +01:00
parent 8488782e14
commit 8d74b11bd3

View File

@@ -280,6 +280,10 @@ suggest_port_probe_result (FindDeviceSupportContext *ctx,
/* If we got a task deferred until a suggestion comes,
* complete it */
if (port_probe_ctx->defer_until_suggested) {
/* Reset the defer until suggested flag; we consider this
* cancelled probe completed now. */
port_probe_ctx->defer_until_suggested = FALSE;
if (suggested_plugin) {
mm_dbg ("(Plugin Manager) (%s) [%s] deferred task completed, got suggested plugin",
mm_plugin_get_name (suggested_plugin),