~ubuntu-branches/ubuntu/vivid/modemmanager/vivid-proposed

« back to all changes in this revision

Viewing changes to src/mm-plugin-base.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-16 17:12:41 UTC
  • mfrom: (16.1.1 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110616171241-k8vgsdmbpsvx467q
Tags: 0.4.997-1
* debian/watch: Switch to .bz2 tarballs.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
757
757
    MMPluginBaseSupportsTaskPrivate *task_priv = MM_PLUGIN_BASE_SUPPORTS_TASK_GET_PRIVATE (task);
758
758
    CustomInit *custom = task_priv->cur_custom->data;
759
759
    gboolean retry = FALSE;
760
 
    gboolean fail = FALSE;
 
760
    gboolean stop = FALSE;
761
761
    guint32 level = 0;
762
762
 
763
763
    custom->tries++;
764
 
    retry = custom->callback (task, response, error, custom->tries, &fail, &level, custom->callback_data);
765
 
 
766
 
    if (fail) {
767
 
        /* Plugin said to fail the probe */
768
 
        probe_complete (task);
769
 
        return;
770
 
    }
771
 
 
772
 
    if (level > 0) {
773
 
        /* Plugin supports the modem */
 
764
    retry = custom->callback (task, response, error, custom->tries, &stop, &level, custom->callback_data);
 
765
 
 
766
    if (stop) {
774
767
        task_priv->probed_caps = level;
775
768
        probe_complete (task);
776
769
        return;