Skip to content

Commit

Permalink
Merge pull request #29 from vinayk7/master
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
gcphost authored Nov 7, 2018
2 parents f6b2ad4 + 2bc5579 commit da94a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RatchetWsServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da94a14

Please sign in to comment.