Fixed bug for non-int values
This commit is contained in:
parent
3ce55575a0
commit
3555b471cd
|
|
@ -170,6 +170,8 @@ class WebSocketHandler implements MessageComponentInterface
|
||||||
|
|
||||||
if ($connectionsCount instanceof PromiseInterface) {
|
if ($connectionsCount instanceof PromiseInterface) {
|
||||||
$connectionsCount->then(function ($connectionsCount) use ($capacity, $connection) {
|
$connectionsCount->then(function ($connectionsCount) use ($capacity, $connection) {
|
||||||
|
$connectionsCount = $connectionsCount ?: 0;
|
||||||
|
|
||||||
$this->sendExceptionIfOverCapacity($connectionsCount, $capacity, $connection);
|
$this->sendExceptionIfOverCapacity($connectionsCount, $capacity, $connection);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue