Unverified Commit 3c7e7921 authored by LoveSy's avatar LoveSy Committed by GitHub

Catch `PendingIntent.CanceledException` thrown from `send`

parent 0ad66875
...@@ -25,7 +25,6 @@ import kotlinx.coroutines.Job ...@@ -25,7 +25,6 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import okhttp3.ResponseBody import okhttp3.ResponseBody
import timber.log.Timber import timber.log.Timber
import java.io.IOException
import java.io.InputStream import java.io.InputStream
class DownloadService : BaseService() { class DownloadService : BaseService() {
...@@ -77,7 +76,7 @@ class DownloadService : BaseService() { ...@@ -77,7 +76,7 @@ class DownloadService : BaseService() {
} }
if (!hasNotifications) if (!hasNotifications)
stopSelf() stopSelf()
} catch (e: IOException) { } catch (e: Exception) {
Timber.e(e) Timber.e(e)
notifyFail(subject) notifyFail(subject)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment