Skip to content

Commit

Permalink
Merge pull request #734 from prebid/678-2-networkonmainthreadexceptio…
Browse files Browse the repository at this point in the history
…n-when-destroying-mediationbanneradunit

NetworkOnMainThreadException Fix
  • Loading branch information
jsligh authored Apr 17, 2024
2 parents 8e2a9e2 + cccefa7 commit 7236153
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.content.Context;
import android.content.res.Resources;
import android.os.AsyncTask;
import android.os.Looper;

import org.prebid.mobile.LogUtil;
import org.prebid.mobile.api.exceptions.AdException;
Expand Down Expand Up @@ -85,7 +86,6 @@ public abstract class Requester {
public void destroy() {
if (networkTask != null) {
networkTask.cancel(true);
networkTask.destroy();
}
networkTask = null;
if (fetchAdIdInfoTask != null) {
Expand Down

0 comments on commit 7236153

Please sign in to comment.