aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2019-08-04 11:48:14 +0200
committerhrxi <hrrrxi@gmail.com>2019-08-05 17:17:17 +0200
commit811408fcb5da3501b66d9a4d8a1da5a91da3a3da (patch)
treef6bde1fe89d2559c82e05100eceb6c8ea1917f67 /libdino/src
parent77ff73a1ca5d2283dc5335c1048ccb3fce66e508 (diff)
downloaddino-811408fcb5da3501b66d9a4d8a1da5a91da3a3da.tar.gz
dino-811408fcb5da3501b66d9a4d8a1da5a91da3a3da.zip
Fix a warning
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/jingle_file_transfers.vala6
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 95c3266f..94fbce09 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;
}