Skip to content

Commit

Permalink
Update server/lib/WebSocket/Connection.php
Browse files Browse the repository at this point in the history
fix $data;
  • Loading branch information
fushihara committed Sep 19, 2012
1 parent 052e29f commit 03dc508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/WebSocket/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function handle($data)
$this->server->getApplication('status')->clientActivity($this->port);
}

if(!isset($data['type']))
if(!isset($decodedData['type']))
{
$this->sendHttpResponse(401);
stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);
Expand Down

0 comments on commit 03dc508

Please sign in to comment.