X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=gaas%2Flib%2FgaasdClient.php;h=c8eb7bae11b54033547f20252f841f29b3822425;hb=17d7c1e759c50b2fe796306f5ca3f46e064cadaa;hp=d5ee3f783f2662ace6a07c80119c62334e464e46;hpb=2acdbc5f052f24af5de2ab013a4fae5eeb1c3305;p=ga4php.git diff --git a/gaas/lib/gaasdClient.php b/gaas/lib/gaasdClient.php index d5ee3f7..c8eb7ba 100644 --- a/gaas/lib/gaasdClient.php +++ b/gaas/lib/gaasdClient.php @@ -67,9 +67,6 @@ class GAASClient { return false; } - //echo "component\n"; - //print_r($component); - socket_close($socket); return $component["data"]; @@ -89,8 +86,11 @@ class GAASClient { $function_recv = $MESSAGES[$st_defined]."_clientrecv"; //echo "real function is $function_send, $function_recv\n"; - if(function_exists($function_send) && function_exists($function_recv)) { - return $function_recv($this->sendReceive($st_defined, $function_send($params))); + if(function_exists($function_send)) { + $fromsend = $this->sendReceive($st_defined, $function_send($params))); + if(function_exists($function_recv)) { + return $function_recv($fromsend); + } else return $fromsend; } else { error_log("Function, $function does not exist!"); }