public function addCurl()

in js/plugins/ajax-contact-extend/classes/twitter/EpiCurl.php [30:50]


  public function addCurl($ch)
  {
  $key = (string)$ch;
  $this->requests[$key] = $ch;

  $res = curl_multi_add_handle($this->mc, $ch);

  // (1)
  if($res === CURLM_OK || $res === CURLM_CALL_MULTI_PERFORM)
  {
    do {
      $mrc = curl_multi_exec($this->mc, $active);
    } while ($mrc === CURLM_CALL_MULTI_PERFORM);

    return new EpiCurlManager($key);
  }
  else
  {
    return $res;
  }
  }