diff --git a/src/RatchetWsServer.php b/src/RatchetWsServer.php index bd59911..a88319d 100644 --- a/src/RatchetWsServer.php +++ b/src/RatchetWsServer.php @@ -103,7 +103,7 @@ protected function throttle() */ protected function limit() { - if ($connectionLimit = config('ratchet.connectionLimit') && $this->connections - 1 >= $connectionLimit) { + if (($connectionLimit = config('ratchet.connectionLimit')) && $this->connections - 1 >= $connectionLimit) { $this->console->info(sprintf('To many connections: %d of %d', $this->connections - 1, $connectionLimit)); $this->conn->send(trans('ratchet::messages.tooManyConnections')); $this->conn->close();