mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-10 10:58:35 +00:00

Some devices actually enforce a scheduling rate, and will crash if you submit more than, say, 250 jobs in 1 minute. This can happen when catching up with messages and scheduling a lot of PushDecryptMessageJobs. While it'd be tricky to limit jobs with constraints, this just does the simple thing of not enqueueing unnecessary jobs for constraint-less jobs.