[telepathy-gabble/master] gabble_file_transfer_channel_close: close the bytestream
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Apr 3 09:25:55 PDT 2009
---
src/file-transfer-channel.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/file-transfer-channel.c b/src/file-transfer-channel.c
index eaac486..6855c84 100644
--- a/src/file-transfer-channel.c
+++ b/src/file-transfer-channel.c
@@ -818,11 +818,15 @@ gabble_file_transfer_channel_close (TpSvcChannel *iface,
if (self->priv->state != TP_FILE_TRANSFER_STATE_COMPLETED &&
self->priv->state != TP_FILE_TRANSFER_STATE_CANCELLED)
{
- /* TODO: close the bytestream ? */
gabble_file_transfer_channel_set_state (
TP_SVC_CHANNEL_TYPE_FILE_TRANSFER (iface),
TP_FILE_TRANSFER_STATE_CANCELLED,
TP_FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_STOPPED);
+
+ if (self->priv->bytestream != NULL)
+ {
+ gabble_bytestream_iface_close (self->priv->bytestream, NULL);
+ }
}
gabble_file_transfer_channel_do_close (GABBLE_FILE_TRANSFER_CHANNEL (iface));
--
1.5.6.5
More information about the telepathy-commits
mailing list