From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] gatchat: fix canceling in progress commands
Date: Mon, 06 Dec 2010 20:49:30 -0600 [thread overview]
Message-ID: <4CFDA0BA.1080202@gmail.com> (raw)
In-Reply-To: <1291320822-10879-1-git-send-email-vinicius.gomes@openbossa.org>
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
Hi Vinicius,
On 12/02/2010 02:13 PM, Vinicius Costa Gomes wrote:
> As g_queue_peek_head() returns the node data field, we have to compare
> it against the actual command, not against the pointer to the queue node.
> ---
> gatchat/gatchat.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
> index d82a02e..96da657 100644
> --- a/gatchat/gatchat.c
> +++ b/gatchat/gatchat.c
> @@ -1060,7 +1060,7 @@ static gboolean at_chat_cancel(struct at_chat *chat, guint group, guint id)
> if (c->gid != group)
> return FALSE;
>
> - if (l == g_queue_peek_head(chat->command_queue) &&
> + if (c == g_queue_peek_head(chat->command_queue) &&
> chat->cmd_bytes_written > 0) {
> /* We can't actually remove it since it is most likely
> * already in progress, just null out the callback
Good catch, patch has been applied, thanks.
Regards,
-Denis
prev parent reply other threads:[~2010-12-07 2:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 20:13 [PATCH] gatchat: fix canceling in progress commands Vinicius Costa Gomes
2010-12-07 2:49 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CFDA0BA.1080202@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox