-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -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; | ||
|