@@ -857,11 +857,6 @@ void CSidekickNet::handleQueuedNetworkAction()
857
857
858
858
handleModemEmulation ( false );
859
859
860
- // every couple of seconds + seconds needed for request
861
- // log cpu temp + uptime + free memory (getSysMonInfo)
862
- // in wlan case do keep-alive measures
863
- // if ( (m_pTimer->GetUptime() - m_timestampOfLastWLANKeepAlive) > 10) //(netEnableWebserver ? 7:5))
864
- // {
865
860
#ifdef WITH_WLAN // we apparently don't need wlan keep-alive at all if we just always do the yield!!!
866
861
for (unsigned z=0 ; z < 100 ; z++)
867
862
{
@@ -882,38 +877,8 @@ void CSidekickNet::handleQueuedNetworkAction()
882
877
// maybe we can check here ich sktp browser is active too?
883
878
if ( !RaspiHasOnlyWLAN () && !m_isC128 && !isSKTPScreenActive () && strcmp ( m_currentKernelRunning, " m" ) == 0 && ( strcmp ( m_CSDBDownloadExtension, " d64" ) != 0 ))
884
879
requireCacheWellnessTreatment ();
885
- /*
886
- // if (!netEnableWebserver)
887
- {
888
- //Circle42 offers experimental WLAN, but it seems to
889
- //disconnect very quickly if there is no traffic.
890
- //This can be very annoying.
891
- //As a WLAN keep-alive, we auto queue a network event
892
- //to avoid WLAN going into "zombie" disconnected mode
893
-
894
- //further tests have to be done if the keep-alive and the webserver
895
- //run together smoothly
896
- if (m_loglevel > 1)
897
- logger->Write ("CSidekickNet", LogNotice, "Triggering WLAN keep-alive request...");
898
- if (m_SKTPServer.port != 0)
899
- {
900
- char pResponseBuffer[4097]; //TODO: can we reuse something else existing here?
901
- CString path = isSktpSessionActive() ? getSktpPath( 92 ) : "/givemea404response.html";
902
- HTTPGet ( m_SKTPServer, path, pResponseBuffer, m_sktpResponseLength);
903
- }
904
- else
905
- UpdateTime();
906
- }
907
- */
908
880
#endif
909
- // m_timestampOfLastWLANKeepAlive = m_pTimer->GetUptime();
910
- if (m_loglevel > 3 )
911
- logger->Write (" CSidekickNet" , LogNotice, getSysMonInfo (1 ));
912
- // }
913
-
914
881
}
915
- // else if (isRunning && isAnyNetworkActionQueued() && usesWLAN())
916
- // m_timestampOfLastWLANKeepAlive = m_pTimer->GetUptime();
917
882
918
883
if (m_queueDelay > 0 )
919
884
{
0 commit comments