Skip to content

Commit

Permalink
Merge pull request #16 from ycgambo/dev
Browse files Browse the repository at this point in the history
bugfix: remove trailing \n on Manager messages
  • Loading branch information
ycgambo authored May 15, 2018
2 parents f20b7f6 + d96c474 commit eb8a852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shadowrocket/Module/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected function listen()
$manager = $this;

$worker->onMessage = function ($client, $buffer) use ($config, $manager) {
$buffer = rtrim($buffer);
switch ($client->stage) {
case Connection::STAGE_INIT:
if ($buffer == $config['token']) {
Expand Down

0 comments on commit eb8a852

Please sign in to comment.