mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Be more defensive when starting the FCM foreground service.
This commit is contained in:
@@ -10,7 +10,6 @@ import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
|
||||
import org.thoughtcrime.securesms.jobs.PushNotificationReceiveJob
|
||||
import org.thoughtcrime.securesms.messages.RestStrategy
|
||||
import org.thoughtcrime.securesms.util.concurrent.SerialMonoLifoExecutor
|
||||
import java.lang.IllegalStateException
|
||||
|
||||
/**
|
||||
* Our goals with FCM processing are as follows:
|
||||
@@ -64,7 +63,7 @@ object FcmFetchManager {
|
||||
activeCount++
|
||||
Log.i(TAG, "Incrementing active count to $activeCount")
|
||||
}
|
||||
} catch (e: IllegalStateException) {
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to start service!", e)
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user