This would also stall the SIM op queue if there's a read error for a record
other than the first.  The other solution would be "goto next;" (keep
reading further records).
---
 src/sim.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/sim.c b/src/sim.c
index deab6bd..695744f 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -317,9 +317,7 @@ static void sim_op_retrieve_cb(const struct ofono_error 
*error,
        int fd;
 
        if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
-               if (op->current == 1)
-                       sim_op_error(modem);
-
+               sim_op_error(modem);
                return;
        }
 
-- 
1.6.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to