mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Catch PendingIntent.CanceledException
thrown from send
This commit is contained in:
parent
0ad66875ab
commit
3c7e792167
@ -25,7 +25,6 @@ import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.launch
|
||||
import okhttp3.ResponseBody
|
||||
import timber.log.Timber
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
|
||||
class DownloadService : BaseService() {
|
||||
@ -77,7 +76,7 @@ class DownloadService : BaseService() {
|
||||
}
|
||||
if (!hasNotifications)
|
||||
stopSelf()
|
||||
} catch (e: IOException) {
|
||||
} catch (e: Exception) {
|
||||
Timber.e(e)
|
||||
notifyFail(subject)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user