aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin-base.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-06-16 17:12:41 +0200
committerGuido Günther <agx@sigxcpu.org>2014-02-05 08:38:26 +0100
commit59ed3390b9a798ff8bf9133cbc28c4539ad99f42 (patch)
tree2009d57abbd0061b4ee230516e004eb83509aac5 /src/mm-plugin-base.c
parentbbf8a053e07c66f336ed46a7fb6105dc30645596 (diff)
parent3dbe8df8bfe8741e1b9a48b56e41517816f17dc1 (diff)
Imported Debian patch 0.4.997-1debian/0.4.997-1
Diffstat (limited to 'src/mm-plugin-base.c')
-rw-r--r--src/mm-plugin-base.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c
index 336f78c..8d033a7 100644
--- a/src/mm-plugin-base.c
+++ b/src/mm-plugin-base.c
@@ -757,20 +757,13 @@ custom_init_response (MMAtSerialPort *port,
MMPluginBaseSupportsTaskPrivate *task_priv = MM_PLUGIN_BASE_SUPPORTS_TASK_GET_PRIVATE (task);
CustomInit *custom = task_priv->cur_custom->data;
gboolean retry = FALSE;
- gboolean fail = FALSE;
+ gboolean stop = FALSE;
guint32 level = 0;
custom->tries++;
- retry = custom->callback (task, response, error, custom->tries, &fail, &level, custom->callback_data);
+ retry = custom->callback (task, response, error, custom->tries, &stop, &level, custom->callback_data);
- if (fail) {
- /* Plugin said to fail the probe */
- probe_complete (task);
- return;
- }
-
- if (level > 0) {
- /* Plugin supports the modem */
+ if (stop) {
task_priv->probed_caps = level;
probe_complete (task);
return;