Skip to content

Commit

Permalink
Merge pull request LinkedDestiny#3 from chenwenli/patch-1
Browse files Browse the repository at this point in the history
方法onTimer的参数第一参数错误
  • Loading branch information
LinkedDestiny committed Dec 25, 2014
2 parents fe9b5a5 + 8eebdb6 commit 2a8e6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/04/swoole_after_server.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function onAfter( $data ) {
$this->serv->send( $param['fd'] , $param['msg']);
}

public function onTimer( $interval ) {
public function onTimer( $serv, $interval ) {
// Do nothing.
}
}
Expand All @@ -61,4 +61,4 @@ public function onTimer( $interval ) {

// use src/o2/swoole_async_client to test the server.

?>
?>

0 comments on commit 2a8e6b6

Please sign in to comment.