base-sim: Reprobe modem if lock status cannot be read after sending puk
If the lock status cannot be read during a puk unblock attempt, reprobe the modem. It is likely that the SIM was permanently blocked if the lock status cannot be read.
This commit is contained in:

committed by
Aleksander Morgado

parent
92c86e2b1b
commit
38f6704fa1
@@ -383,6 +383,7 @@ reprobe (MMDevice *self)
|
||||
{
|
||||
GError *error = NULL;
|
||||
|
||||
mm_obj_dbg (self, "Reprobing modem...");
|
||||
if (!mm_device_create_modem (self, &error)) {
|
||||
mm_obj_warn (self, "could not recreate modem: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
Reference in New Issue
Block a user