Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fix instance of
Browse files Browse the repository at this point in the history
  • Loading branch information
bordeux committed Apr 17, 2016
1 parent 99db54a commit 7e76331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Service/ConnectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function onClose(ConnectionInterface $conn)
{
/** @var Client $client */
$client = isset($conn->__bclient) ? $conn->__bclient : null;
if (!($client instanceof WebsocketInterface)) {
if (!($client instanceof Client)) {
$conn->close();
return;
}
Expand Down Expand Up @@ -180,7 +180,7 @@ function onMessage(ConnectionInterface $conn, $msg)

/** @var Client $client */
$client = isset($conn->__bclient) ? $conn->__bclient : null;
if (!($client instanceof WebsocketInterface)) {
if (!($client instanceof Client)) {
$conn->close();
return;
}
Expand Down

0 comments on commit 7e76331

Please sign in to comment.