Be more defensive when starting the FCM foreground service.
This commit is contained in:
parent
c4632dc4a3
commit
692006dcd8
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
|
||||||
import org.thoughtcrime.securesms.jobs.PushNotificationReceiveJob
|
import org.thoughtcrime.securesms.jobs.PushNotificationReceiveJob
|
||||||
import org.thoughtcrime.securesms.messages.RestStrategy
|
import org.thoughtcrime.securesms.messages.RestStrategy
|
||||||
import org.thoughtcrime.securesms.util.concurrent.SerialMonoLifoExecutor
|
import org.thoughtcrime.securesms.util.concurrent.SerialMonoLifoExecutor
|
||||||
import java.lang.IllegalStateException
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Our goals with FCM processing are as follows:
|
* Our goals with FCM processing are as follows:
|
||||||
|
@ -64,7 +63,7 @@ object FcmFetchManager {
|
||||||
activeCount++
|
activeCount++
|
||||||
Log.i(TAG, "Incrementing active count to $activeCount")
|
Log.i(TAG, "Incrementing active count to $activeCount")
|
||||||
}
|
}
|
||||||
} catch (e: IllegalStateException) {
|
} catch (e: Exception) {
|
||||||
Log.w(TAG, "Failed to start service!", e)
|
Log.w(TAG, "Failed to start service!", e)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue