aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-plugin.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c
index a8009976..8db4c049 100644
--- a/src/mm-plugin.c
+++ b/src/mm-plugin.c
@@ -477,8 +477,18 @@ port_probe_run_ready (MMPortProbe *probe,
g_simple_async_result_set_op_res_gpointer (ctx->result,
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED),
NULL);
- } else {
- /* For remaining errors, just propagate them */
+ }
+ /* Probing failed but the plugin tells us to retry; so we'll defer the
+ * probing a bit */
+ else if (g_error_matches (error,
+ MM_CORE_ERROR,
+ MM_CORE_ERROR_RETRY)) {
+ g_simple_async_result_set_op_res_gpointer (ctx->result,
+ GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_DEFER),
+ NULL);
+ }
+ /* For remaining errors, just propagate them */
+ else {
g_simple_async_result_take_error (ctx->result, error);
}
} else {