Skip to content

Timer::cancel() is obsolete #3

@fmdelvalle

Description

@fmdelvalle

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;
}
});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions