aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/jingle_file_transfers.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/jingle_file_transfers.vala')
-rw-r--r--libdino/src/service/jingle_file_transfers.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/jingle_file_transfers.vala b/libdino/src/service/jingle_file_transfers.vala
index e0d3fce1..9e9d7ec8 100644
--- a/libdino/src/service/jingle_file_transfers.vala
+++ b/libdino/src/service/jingle_file_transfers.vala
@@ -103,7 +103,7 @@ public class JingleFileProvider : FileProvider, Object {
throw new IOError.FAILED("Transfer data not available anymore");
}
yield jingle_file_transfer.accept(stream);
- return jingle_file_transfer.stream;
+ return new LimitInputStream(jingle_file_transfer.stream, file_meta.size);
}
public int get_id() {