Skip to content

Commit

Permalink
Fixed retry
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Aug 24, 2016
1 parent 10e1718 commit 9576431
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Hprose/Socket/Transporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose socket Transporter class for php 5.3+ *
* *
* LastModified: Aug 11, 2016 *
* LastModified: Aug 24, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -183,10 +183,11 @@ private function createPool($client, $o) {
}
if (empty($pool)) {
$e = new Exception($errstr, $errno);
foreach ($o->results as $result) {
$results = $o->results;
$o->results = array();
foreach ($results as $result) {
$result->reject($e);
}
$o->results = array();
return false;
}
return $pool;
Expand Down

0 comments on commit 9576431

Please sign in to comment.