File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -805,8 +805,8 @@ private function get_new_api_token() {
805805
806806 public function check_api_connection () {
807807 $ api_check = wp_remote_head ( "https://api.eduadmin.se/healthchecks " , [
808- 'timeout ' => 0.25 ,
809- 'blocking ' => false ,
808+ 'timeout ' => 0.5 ,
809+ 'blocking ' => true ,
810810 ] );
811811
812812 $ this ->api_connection = ! is_wp_error ( $ api_check ) && 200 === wp_remote_retrieve_response_code ( $ api_check );
Original file line number Diff line number Diff line change @@ -805,8 +805,8 @@ private function get_new_api_token() {
805805
806806 public function check_api_connection () {
807807 $ api_check = wp_remote_head ( "https://api.eduadmin.se/healthchecks " , [
808- 'timeout ' => 0.25 ,
809- 'blocking ' => false ,
808+ 'timeout ' => 0.5 ,
809+ 'blocking ' => true ,
810810 ] );
811811
812812 $ this ->api_connection = ! is_wp_error ( $ api_check ) && 200 === wp_remote_retrieve_response_code ( $ api_check );
You can’t perform that action at this time.
0 commit comments