From: Denis Kenzior Date: Wed, 7 Jul 2010 20:12:16 +0000 (-0500) Subject: stk: Don't submit all pending envelopes at once X-Git-Tag: 0.25~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db9b67e791ec1df239d616441edb08c28a0a4aef;p=platform%2Fupstream%2Fofono.git stk: Don't submit all pending envelopes at once --- diff --git a/src/stk.c b/src/stk.c index 1185dbd..30ae98f 100644 --- a/src/stk.c +++ b/src/stk.c @@ -135,11 +135,11 @@ out: static void envelope_queue_run(struct ofono_stk *stk) { - while (g_queue_get_length(stk->envelope_q) > 0) { + if (g_queue_get_length(stk->envelope_q) > 0) { struct envelope_op *op = g_queue_peek_head(stk->envelope_q); stk->driver->envelope(stk, op->tlv_len, op->tlv, - envelope_cb, stk); + envelope_cb, stk); } }