diff --git a/TextToSpeech/impl/NetworkStatusObserver.cpp b/TextToSpeech/impl/NetworkStatusObserver.cpp index 3a6c0d4fe1..914866175d 100644 --- a/TextToSpeech/impl/NetworkStatusObserver.cpp +++ b/TextToSpeech/impl/NetworkStatusObserver.cpp @@ -82,7 +82,7 @@ bool NetworkStatusObserver::isConnected() { } JsonObject joGetParams, joGetResult; - auto status = m_networkService->Invoke(1000, "isConnectedToInternet", joGetParams, joGetResult); + auto status = m_networkService->Invoke(3000, "isConnectedToInternet", joGetParams, joGetResult); if (status == Core::ERROR_NONE && joGetResult.HasLabel("connectedToInternet")) { m_isConnected = joGetResult["connectedToInternet"].Boolean(); } else { @@ -92,7 +92,7 @@ bool NetworkStatusObserver::isConnected() { } if (!m_eventRegistered) { - if (m_networkService->Subscribe(1000, "onInternetStatusChange", + if (m_networkService->Subscribe(3000, "onInternetStatusChange", &NetworkStatusObserver::onConnectionStatusChangedEventHandler, this) == Core::ERROR_NONE) { m_eventRegistered = true; TTSLOG_INFO("Subscribed to notification handler : onInternetStatusChange");