Browse Source

Only extend the timeout, not reduce it

widget
Lee Willis 12 years ago
parent
commit
66308371b3
  1. 2
      github-api.php

2
github-api.php

@ -44,7 +44,7 @@ class github_api {
* @return int The revised timeout setting * @return int The revised timeout setting
*/ */
function http_request_timeout ( $seconds ) { function http_request_timeout ( $seconds ) {
return 25; return $seconds < 25 ? 25 : $seconds;
} }

Loading…
Cancel
Save