diff options
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadFile.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadFile.java b/src/github/daneren2005/dsub/service/DownloadFile.java index 8a0ec781..d9adc1bf 100644 --- a/src/github/daneren2005/dsub/service/DownloadFile.java +++ b/src/github/daneren2005/dsub/service/DownloadFile.java @@ -423,27 +423,25 @@ public class DownloadFile implements BufferFile { } } - } catch(SubsonicRESTException x) { + } catch(InterruptedException x) { + throw x + } catch(IOException x) { Util.close(out); Util.delete(completeFile); Util.delete(saveFile); - if (!isCancelled()) { - failed++; + if(!isCancelled()) { failedDownload = true; Log.w(TAG, "Failed to download '" + song + "'.", x); } - } catch(InterruptedException x) { - throw x; } catch (Exception x) { Util.close(out); Util.delete(completeFile); Util.delete(saveFile); if (!isCancelled()) { - failed++; + failed++; failedDownload = true; Log.w(TAG, "Failed to download '" + song + "'.", x); } - } finally { Util.close(in); Util.close(out); |