aboutsummaryrefslogtreecommitdiff
path: root/src/prepaid-manager-applet.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-12-28 14:59:48 +0100
committerGuido Günther <agx@sigxcpu.org>2011-12-28 15:23:56 +0100
commitbf3bf720f4f23cde830c54a8af694c12059e2aca (patch)
treeb354a7e3d8942bd2dc27d4ee3f2a65e2d797d4d7 /src/prepaid-manager-applet.py
parentd544f89c401d4b5e105e22647eae3fcbb864e4bc (diff)
PPMController: Reschedule modem setup on modem errors
This is the safest thing to do at the moment.
Diffstat (limited to 'src/prepaid-manager-applet.py')
-rwxr-xr-xsrc/prepaid-manager-applet.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
index 7df63e6..1e350c0 100755
--- a/src/prepaid-manager-applet.py
+++ b/src/prepaid-manager-applet.py
@@ -247,6 +247,8 @@ class PPMController(GObject.GObject):
def on_modem_error(self, e):
self.view.show_modem_error(e.msg)
logging.error(e.msg)
+ # The modem might have disconnected. So reschedule the setup
+ self.schedule_setup()
def on_provider_changed(self, obj, provider):
"""Act on provider-changed signal"""