void NET_STATUS::poll() { // For 30 seconds after wakeup, the network system (DNS etc.) // may still be coming up, so defer the reference site check; // otherwise might show spurious "need connection" message if (gstate.now < gstate.last_wakeup_time + 30) { return; } if (net_status.need_to_contact_reference_site && gstate.gui_http.state==GUI_HTTP_STATE_IDLE) { net_status.contact_reference_site(); } }
void NET_STATUS::poll() { // for 30 seconds after wakeup, the network system (DNS etc.) // may still be coming up, so defer the reference site check; // otherwise might show spurious "need connection" message // if (gstate.now < gstate.last_wakeup_time + 30) return; // wait until after a round of automatic proxy detection // before attempting to contact the reference site // if (working_proxy_info.autodetect_proxy_supported && working_proxy_info.need_autodetect_proxy_settings && !working_proxy_info.have_autodetect_proxy_settings) return; if (net_status.need_to_contact_reference_site && !gstate.gui_http.is_busy()) { net_status.contact_reference_site(); } }