Skip to content

Commit

Permalink
DELIA-65299: TTS using offline engine for VG even with Device Online (r…
Browse files Browse the repository at this point in the history
…dkcentral#5357)

Reason for change: Increase Network plugin access Timeout from 1 sec to 3 sec
Test Procedure: Mentioned in ticket
Risks: Low

Signed-off-by: vdinak240 <[email protected]>
  • Loading branch information
vdinak240 authored May 31, 2024
1 parent 0dac70b commit d5dcd2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TextToSpeech/impl/NetworkStatusObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool NetworkStatusObserver::isConnected() {
}

JsonObject joGetParams, joGetResult;
auto status = m_networkService->Invoke<JsonObject, JsonObject>(1000, "isConnectedToInternet", joGetParams, joGetResult);
auto status = m_networkService->Invoke<JsonObject, JsonObject>(3000, "isConnectedToInternet", joGetParams, joGetResult);
if (status == Core::ERROR_NONE && joGetResult.HasLabel("connectedToInternet")) {
m_isConnected = joGetResult["connectedToInternet"].Boolean();
} else {
Expand All @@ -92,7 +92,7 @@ bool NetworkStatusObserver::isConnected() {
}

if (!m_eventRegistered) {
if (m_networkService->Subscribe<JsonObject>(1000, "onInternetStatusChange",
if (m_networkService->Subscribe<JsonObject>(3000, "onInternetStatusChange",
&NetworkStatusObserver::onConnectionStatusChangedEventHandler, this) == Core::ERROR_NONE) {
m_eventRegistered = true;
TTSLOG_INFO("Subscribed to notification handler : onInternetStatusChange");
Expand Down

0 comments on commit d5dcd2b

Please sign in to comment.