Fix: Check if the command is still pending

This commit is contained in:
Denis Kenzior 2010-02-01 12:02:38 -06:00
parent e6ccc74504
commit 0767f1dbd8
1 changed files with 3 additions and 0 deletions

View File

@ -758,6 +758,9 @@ static gboolean wakeup_no_response(gpointer user)
if (chat->debugf)
chat->debugf("Wakeup got no response\n", chat->debug_data);
if (cmd == NULL)
return FALSE;
g_at_chat_finish_command(chat, FALSE, NULL);
cmd = at_command_create(chat->wakeup, none_prefix, FALSE,
NULL, wakeup_cb, chat, NULL, TRUE);