This commit is contained in:
2020-10-09 17:30:45 +08:00
parent 00ba75eb88
commit 542b6bed1e
+4 -4
View File
@@ -186,10 +186,10 @@ class Broker
if ($host && $port) { if ($host && $port) {
try { try {
$socket = $this->getSocket($host, $port, $modeSync); $socket = $this->getSocket($host, $port, $modeSync);
if (!$modeSync) { // if (!$modeSync) {
$socket->SetonReadable($this->process); // $socket->SetonReadable($this->process);
} // }
$socket->connect(); // $socket->connect();
$this->{$type}[$key] = $socket; $this->{$type}[$key] = $socket;
return $socket; return $socket;
} catch (\Exception $e) { } catch (\Exception $e) {