From a9637baddf22bed58c6dba18ee39ffc543a0751e Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Thu, 20 Nov 2014 17:45:44 +0100 Subject: [PATCH] PushNetworkException for network errors on external downloads. Closes #2112 Fixes #1264 // FREEBIE --- .../textsecure/internal/push/PushServiceSocket.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtextsecure/src/main/java/org/whispersystems/textsecure/internal/push/PushServiceSocket.java b/libtextsecure/src/main/java/org/whispersystems/textsecure/internal/push/PushServiceSocket.java index a3efaad5e3..6b5ef6deb5 100644 --- a/libtextsecure/src/main/java/org/whispersystems/textsecure/internal/push/PushServiceSocket.java +++ b/libtextsecure/src/main/java/org/whispersystems/textsecure/internal/push/PushServiceSocket.java @@ -368,6 +368,8 @@ public class PushServiceSocket { output.close(); Log.w("PushServiceSocket", "Downloaded: " + url + " to: " + localDestination.getAbsolutePath()); + } catch (IOException ioe) { + throw new PushNetworkException(ioe); } finally { connection.disconnect(); }