Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/UI_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yoalex5 authored May 20, 2021
2 parents dce657a + aaf771f commit f625952
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.prebid.mobile.http.HTTPPost;
import org.prebid.mobile.http.NoContextException;
import org.prebid.mobile.http.TaskResult;
import org.prebid.mobile.tasksmanager.TasksManager;

import java.lang.ref.WeakReference;
import java.util.ArrayList;
Expand Down Expand Up @@ -217,7 +218,12 @@ private void processResult(TaskResult<JSONObject> taskResult) {
private void cancel() {
isCancelled = true;
if (timeoutFired) {
notifyDemandFailed(ResultCode.TIMEOUT);
TasksManager.getInstance().executeOnMainThread(new Runnable() {
@Override
public void run() {
notifyDemandFailed(ResultCode.TIMEOUT);
}
});
} else {
timeoutCountDownTimer.cancel();
}
Expand Down

0 comments on commit f625952

Please sign in to comment.