MajorTanya 3910ffdd9e
Fix DelayedTrackingUpdateJob spam on update errors (#411)
* Fix DelayedTrackingUpdateJob spam on update errors

DelayedTrackingUpdateJob would start spamming when it encountered an
error (e.g. a tracker has an issue) and never stop.
This seems to stem from a circular dependency between the Job's
`doWork` and TrackChapter's `await`.

TrackChapter sets up a completely new instance of the
DelayedTrackingUpdateJob if any Exception was thrown during the track
update.

This causes the Job to get replaced (as per the WorkManager's set
ExistingWorkPolicy).

Because of this, the guard clause at the start of doWork would never
trigger, as all instances of the Job would report being the 0th try
(because they were completely new instances).

This simple fix introduces a boolean `isRetry` parameter to
TrackChapter's await method, which is set to `false` by default.
DelayedTrackingUpdateJob however sets this parameter to `true`, which
means TrackChapter won't try to set up the Job again.

* Rename isRetry parameter to setupJobOnFailure

This also inverts the logic, so true & false were swapped.
2024-04-09 13:23:43 +06:00
2024-02-26 22:19:23 +06:00
2024-01-17 13:29:42 +06:00
2024-04-09 13:23:42 +06:00
2024-01-29 15:20:21 +06:00
2024-01-29 15:20:21 +06:00
2024-01-29 15:20:21 +06:00
2024-01-29 13:25:01 +06:00
2024-01-29 15:20:21 +06:00
2024-01-29 15:20:21 +06:00
2023-11-04 23:28:41 -04:00
2020-01-11 16:13:08 -05:00
2023-10-01 10:07:14 -04:00
2024-01-16 01:36:08 +06:00
2023-06-30 22:09:07 -04:00
2024-01-23 14:14:05 +06:00
2024-01-29 15:20:21 +06:00

Mihon logo

Mihon App

Discover and read manga, webtoons, comics, and more easier than ever on your Android device.

Discord server GitHub downloads

CI License: Apache-2.0 Translation status

Download

Mihon Stable Mihon Beta

Requires Android 8.0 or higher.

Features

  • Local reading of content.
  • A configurable reader with multiple viewers, reading directions and other settings.
  • Tracker support: MyAnimeList, AniList, Kitsu, MangaUpdates, Shikimori, and Bangumi support.
  • Categories to organize your library.
  • Light and dark themes.
  • Schedule updating your library for new chapters.
  • Create backups locally to read offline or to your desired cloud service.
  • Plus much more...

Contributing

Code of conduct · Contributing guide

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

If you got any questions, join our Discord server.

Issues

Before reporting a new issue, take a look at the FAQ, the changelog and the already opened issues.

Bugs
  • Include version (More → About → Version).
  • If not latest, try updating, it may have already been solved.
  • Beta version is equal to the number of commits as seen on the main page.
  • Include steps to reproduce (if not obvious from description).
  • Include screenshot (if needed).
  • If it could be device-dependent, try reproducing on another device (if possible).
  • Don't group unrelated requests into one issue
Feature requests
  • Write a detailed issue, explaining what it should do or how.
    • Avoid writing just "like X app does";
  • Include screenshot (if needed)
  • Source requests are not accepted.

Repositories

mihonapp/website - GitHub

Credits

Thank you to all the people who have contributed!

Mihon app contributors

Disclaimer

The developer(s) of this application does not have any affiliation with the content providers available, and this application hosts zero content.

License

Copyright © 2015 Javier Tomás
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Modifications Copyright © 2024 The Mihon Open Source Project
Description
Free and open source manga reader for Android. Successor to Tachiyomi.
Readme Pixar 90 MiB
Languages
Kotlin 100%