We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e2854 commit 2dfc2e8Copy full SHA for 2dfc2e8
1 file changed
src/Promise.php
@@ -76,7 +76,7 @@ public function always(callable $onFulfilledOrRejected)
76
77
public function cancel()
78
{
79
- if (null === $this->canceller || null !== $this->result) {
+ if (null === $this->canceller) {
80
return;
81
}
82
@@ -130,6 +130,7 @@ private function settle(PromiseInterface $result)
130
$handlers = $this->handlers;
131
132
$this->handlers = [];
133
+ $this->canceller = null;
134
$this->result = $result;
135
136
foreach ($handlers as $handler) {
0 commit comments