Skip to content

Cancel previous interstitial timer before starting a new one #4839

Description

@mustafaozhan

setupInterstitialAdTimer() launches a new data.adJob without cancelling the existing one. Normally onAppBackground() cancels it first, but two onAppForeground() calls without an intervening background spawn a second timer coroutine, so interstitials can fire too often. Cancel the previous job before relaunching.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions