aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-03-29 12:33:20 +0100
committerAleksander Morgado <aleksander@lanedo.com>2013-03-29 12:33:20 +0100
commita7b8cbb71d1447a5cc870aefed99ccc6b3325cd3 (patch)
treebe0bec393efd9cf7b4aef8c092b6f9969d831216 /src/mm-base-modem.c
parent1e7164792732b28db77fdc3d56e4a7a9e43e6602 (diff)
port-probe: don't reschedule next probing step when serial port buffer full
When the serial port buffer gets full of non-AT garbage during port probing, we were re-scheduling the next probing step, which is completely wrong, as we then would be processing the same probing task twice. If we get a buffer full, just cancel the AT probing cancellable, which would cancel not only the possible AT probings, but also the custom init if there is any. Also, make sure that the custom_init() of the plugins out there don't return an error if the GCancellable is cancelled. Cancelling the GCancellable means we should just stop the custom_init(), and actually sending an error in custom_init() means that the port should be set as unsupported by the plugin, so completely different things. Should fix https://bugzilla.gnome.org/show_bug.cgi?id=696695
Diffstat (limited to 'src/mm-base-modem.c')
0 files changed, 0 insertions, 0 deletions