reactphp-curl icon indicating copy to clipboard operation
reactphp-curl copied to clipboard

Timer::cancel() is obsolete

Open fmdelvalle opened this issue 3 years ago • 0 comments

Curl.php lines 94 and following should be replaced with: if (!isset($this->loop_timer)) { $this->loop_timer = $this->loop->addPeriodicTimer($this->timeout, function() { $this->run(); if (!($this->client->run() || $this->client->has())) { $this->loop->cancelTimer($this->loop_timer); $this->loop_timer = null; } }); }

fmdelvalle avatar Mar 22 '21 19:03 fmdelvalle