[telepathy-gabble/master] bytestream_negotiate_cb: change channel state if bytestream was refused
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Apr 3 09:25:56 PDT 2009
---
src/file-transfer-channel.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/file-transfer-channel.c b/src/file-transfer-channel.c
index f4c80b8..4668bd1 100644
--- a/src/file-transfer-channel.c
+++ b/src/file-transfer-channel.c
@@ -1032,7 +1032,10 @@ bytestream_negotiate_cb (GabbleBytestreamIface *bytestream,
if (bytestream == NULL)
{
DEBUG ("initiator refused file offer");
- /* TODO: change channel state */
+ gabble_file_transfer_channel_set_state (
+ TP_SVC_CHANNEL_TYPE_FILE_TRANSFER (self),
+ TP_FILE_TRANSFER_STATE_CANCELLED,
+ TP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_STOPPED);
return;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list