diff options
author | Marvin W <git@larma.de> | 2019-08-29 00:44:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 00:44:59 +0200 |
commit | 9f613d5812f1893481f06d3806ef4f03048df2b8 (patch) | |
tree | d8d63db8c3cef6d3616fb78be0c50d40673b0d6e /libdino/src/service/jingle_file_transfers.vala | |
parent | f0c2ce0047debe75565877f5033ccdccfbd4b755 (diff) | |
parent | 6028fd15a81a084b63311bc61f7b48d9f3d00746 (diff) | |
download | dino-9f613d5812f1893481f06d3806ef4f03048df2b8.tar.gz dino-9f613d5812f1893481f06d3806ef4f03048df2b8.zip |
Merge pull request #592 from hrxi/gsoc_1
Add SOCKS5 bytestreams and a couple of other fixes
Diffstat (limited to 'libdino/src/service/jingle_file_transfers.vala')
-rw-r--r-- | libdino/src/service/jingle_file_transfers.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdino/src/service/jingle_file_transfers.vala b/libdino/src/service/jingle_file_transfers.vala index 5df42a03..0a93979b 100644 --- a/libdino/src/service/jingle_file_transfers.vala +++ b/libdino/src/service/jingle_file_transfers.vala @@ -39,7 +39,11 @@ public class JingleFileProvider : FileProvider, Object { if (jingle_file_transfer == null) { throw new FileReceiveError.DOWNLOAD_FAILED("Transfer data not available anymore"); } - jingle_file_transfer.accept(stream); + try { + jingle_file_transfer.accept(stream); + } catch (IOError e) { + throw new FileReceiveError.DOWNLOAD_FAILED("Establishing connection did not work"); + } return jingle_file_transfer.stream; } |