Spacing
This commit is contained in:
parent
d6b6135d7c
commit
8e3a86d2ed
|
|
@ -153,6 +153,7 @@ class WebSocketHandler implements MessageComponentInterface
|
||||||
{
|
{
|
||||||
if (! is_null($capacity = $connection->app->capacity)) {
|
if (! is_null($capacity = $connection->app->capacity)) {
|
||||||
$connectionsCount = $this->channelManager->getConnectionCount($connection->app->id);
|
$connectionsCount = $this->channelManager->getConnectionCount($connection->app->id);
|
||||||
|
|
||||||
if ($connectionsCount >= $capacity) {
|
if ($connectionsCount >= $capacity) {
|
||||||
throw new ConnectionsOverCapacity();
|
throw new ConnectionsOverCapacity();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue