[Telepathy-commits] [telepathy-salut/master] Send the 'item-not-found' error if we can't retrieve the file from peer

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 6 06:43:22 PST 2008


---
 src/salut-file-transfer-channel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/salut-file-transfer-channel.c b/src/salut-file-transfer-channel.c
index a208a2e..f899ab7 100644
--- a/src/salut-file-transfer-channel.c
+++ b/src/salut-file-transfer-channel.c
@@ -869,6 +869,12 @@ error_cb (GibberFileTransfer *ft,
   if (domain == GIBBER_FILE_TRANSFER_ERROR && code ==
       GIBBER_FILE_TRANSFER_ERROR_NOT_FOUND)
     {
+      if (receiver)
+        {
+          /* Inform the sender we weren't able to retrieve the file */
+          gibber_file_transfer_cancel (self->priv->ft, 404);
+        }
+
       salut_file_transfer_channel_set_state (
           SALUT_SVC_CHANNEL_TYPE_FILE_TRANSFER (self),
           SALUT_FILE_TRANSFER_STATE_CANCELLED,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list