Skip to content

Commit

Permalink
Fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yachtcaptain23 committed Sep 25, 2020
1 parent 5e9b529 commit 862ae5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/brave_ads/browser/ads_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,9 @@ void AdsServiceImpl::StartNotificationTimeoutTimer(
const std::string& uuid) {
#if !defined(OS_ANDROID)
const uint64_t timeout_in_seconds = 120;
#else
const uint64_t timeout_in_seconds = 30;
#endif

notification_timers_[uuid] = std::make_unique<base::OneShotTimer>();

Expand All @@ -2060,7 +2063,6 @@ void AdsServiceImpl::StartNotificationTimeoutTimer(

VLOG(1) << "Timeout ad notification with uuid " << uuid << " in "
<< timeout_in_seconds << " seconds";
#endif
}

bool AdsServiceImpl::StopNotificationTimeoutTimer(
Expand Down

0 comments on commit 862ae5e

Please sign in to comment.