Skip to content

Commit

Permalink
DELIA-65419: Delay in providing 'oninternetstatuschange' event from N…
Browse files Browse the repository at this point in the history
…etwork Thunder Plugin (rdkcentral#5374)

DELIA-65419: Update no internet event logic in both Network and NetworkManager
(cherry picked from commit 3237958)
  • Loading branch information
cmuhammedrafi committed Jun 10, 2024
1 parent 7120461 commit 785f6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Network/NetworkConnectivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ namespace WPEFramework {
if(g_internetState.load() != InternetConnectionState)
{
LOGINFO("notification count %d ...", notifyWaitCount);
if(InternetConnectionState == nsm_internetState::NO_INTERNET && notifyWaitCount > 0)
/* Retry logic only need when continuous monitor is running, otherwise post notification immediately */
if(InternetConnectionState == nsm_internetState::NO_INTERNET && isContinuesMonitoringNeeded && notifyWaitCount > 0)
{
/* Decrease the notification count to create a delay in posting the 'no internet' state. */
notifyWaitCount--;
Expand Down

0 comments on commit 785f6b8

Please sign in to comment.