Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #15 from igorw/updates
Browse files Browse the repository at this point in the history
Update composer and react
  • Loading branch information
bergie committed Jul 9, 2012
2 parents f85a190 + 7b4fc0a commit a32dfe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
@@ -1,4 +1,5 @@
{
"minimum-stability": "dev",
"name": "dnode/dnode",
"type": "library",
"description": "DNode RPC protocol for PHP 5.3",
Expand Down
3 changes: 1 addition & 2 deletions src/DNode/DNode.php
Expand Up @@ -43,7 +43,6 @@ public function connect()
}

$conn = new Connection($stream, $this->loop);
$this->loop->addReadStream($stream, array($conn, 'handleData'));
$this->handleConnection($conn, $params);
}

Expand All @@ -61,7 +60,7 @@ public function listen()
$that = $this;

$server = new Server($this->loop);
$server->on('connect', function ($conn) use ($that, $params) {
$server->on('connection', function ($conn) use ($that, $params) {
$that->handleConnection($conn, $params);
});
$server->listen($params['port'], $params['host']);
Expand Down

0 comments on commit a32dfe1

Please sign in to comment.