|
From: | Pawel Kot |
Subject: | Re: [Opensync-users] [PATCH] Delete message when write fails |
Date: | Mon, 9 Jul 2007 19:35:27 +0200 |
Hi, On 7/9/07, Keith Packard <address@hidden> wrote:
@@ -2468,7 +2469,11 @@ static gn_error NK6510_WritePhonebookLocation(gn_data > - SEND_MESSAGE_BLOCK(NK6510_MSG_PHONEBOOK, count); + if (sm_message_send (count, NK6510_MSG_PHONEBOOK, req, state)) return GN_ERR_NOTREADY; + error = sm_block (NK6510_MSG_PHONEBOOK, data, state); + if (error) + (void) NK6510_DeletePhonebookLocation(data, state); + return error;
I'm not sure why you need this. Did you have a case when write failed but wrote the entry? Please show the log. The above may cause a problem when overwriting existing entries. take care, pkot -- Pawel Kot
[Prev in Thread] | Current Thread | [Next in Thread] |