gsm: pass GSM registration errors up to caller

Register was appearing to succeed even when it failed.
This commit is contained in:
Eric Shienbrood
2011-08-21 09:04:08 -05:00
committed by Dan Williams
parent acc0928315
commit 7605ffec59
+4
View File
@@ -3046,6 +3046,10 @@ register_done (MMAtSerialPort *port,
if (priv->pending_reg_info) {
g_warn_if_fail (info == priv->pending_reg_info);
if (error) {
g_clear_error (&info->error);
info->error = g_error_copy (error);
}
/* Don't use cached registration state here since it could be up to
* 30 seconds old. Get fresh registration state.