summaryrefslogtreecommitdiffstats
path: root/gearman
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-13 13:23:41 +0200
committerBjörn Geiger2011-07-13 13:23:41 +0200
commitf57d861d2ef8956937f64640742fbfe9d046cf40 (patch)
treec303cdfa4f007619011150928ab1dbcd23fa8675 /gearman
parentFehler korrigiert (diff)
downloadpoolctrl-f57d861d2ef8956937f64640742fbfe9d046cf40.tar.gz
poolctrl-f57d861d2ef8956937f64640742fbfe9d046cf40.tar.xz
poolctrl-f57d861d2ef8956937f64640742fbfe9d046cf40.zip
weiteren Fehler korrigiert
Diffstat (limited to 'gearman')
-rw-r--r--gearman/bootWorker.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/gearman/bootWorker.php b/gearman/bootWorker.php
index 98065f9..4f734f7 100644
--- a/gearman/bootWorker.php
+++ b/gearman/bootWorker.php
@@ -8,15 +8,14 @@ function bootTask(GearmanJob $job) {
if(is_array($ipArray)) {
foreach($ipArray as $ip) {
+ echo 'ping ' . $ip . "\n";
$result = $client->do("ping", $ip);
- echo $result;
$results[] = $result;
}
}
- if (! $result)
- {
- $result = "bad return code\n" . $gmc->error();
+ if (!is_array($results)) {
+ $results = "bad return code\n" . $gmc->error();
}
return $results;