Page MenuHomePhabricator

D21198.id50482.diff
No OneTemporary

D21198.id50482.diff

diff --git a/src/future/Future.php b/src/future/Future.php
--- a/src/future/Future.php
+++ b/src/future/Future.php
@@ -41,15 +41,15 @@
'timeout.'));
}
- if ($this->hasException()) {
- throw $this->getException();
- }
-
- if (!$this->hasResult()) {
+ if (!$this->hasResult() && !$this->hasException()) {
$graph = new FutureIterator(array($this));
$graph->resolveAll();
}
+ if ($this->hasException()) {
+ throw $this->getException();
+ }
+
return $this->getResult();
}

File Metadata

Mime Type
text/plain
Expires
Mar 21 2025, 8:30 AM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381947
Default Alt Text
D21198.id50482.diff (545 B)

Event Timeline