protected function createHandle(){

		if(!empty($this->stack)){
			$url = array_shift($this->stack);

			if($url instanceof URL){
				$curl = curl_init($url->mergeParams());

				curl_setopt_array($curl, $this->curl_options);
				curl_multi_add_handle($this->curl_multi, $curl);

				if($this->options->sleep){
					usleep($this->options->sleep);
				}

			}
			else{
				// retry on next if we don't get what we expect
				$this->createHandle(); // @codeCoverageIgnore
			}

		}

	}
protected function createHandle(){

		if(!empty($this->stack)){
			$url = array_shift($this->stack);

			if($url instanceof URL){
				$curl = curl_init($url->mergeParams());

				curl_setopt_array($curl, $this->curl_options);
				curl_multi_add_handle($this->curl_multi, $curl);

				if($this->options->sleep){
					usleep($this->options->sleep);
				}

			}
			else{
				// retry on next if we don't get what we expect
				$this->createHandle(); // @codeCoverageIgnore
			}

		}

	}
protected function createHandle ( ) { if ( ! empty ( $ this -> stack ) ) { $ url = array_shift ( $ this -> stack ) ; if ( $ url instanceof URL ) { $ curl = curl_init ( $ url -> mergeParams ( ) ) ; curl_setopt_array ( $ curl , $ this -> curl_options ) ; curl_multi_add_handle ( $ this -> curl_multi , $ curl ) ; if ( $ this -> options -> sleep ) { usleep ( $ this -> options -> sleep ) ; } } else { // retry on next if we don't get what we expect $ this -> createHandle ( ) ; // @codeCoverageIgnore } } }
creates a new cURL handle

@return void
creates a new cURL handle